[block-manager] Superblocks weren't being marked as DIRTY

Gulp
This commit is contained in:
Joe Thornber 2014-08-21 14:25:02 +01:00
parent b493a30b65
commit 930cc9d412
1 changed files with 1 additions and 1 deletions

View File

@ -271,7 +271,7 @@ namespace persistent_data {
if (bc_.get_nr_locked() > 0)
throw std::runtime_error("attempt to lock superblock while other locks are still held");
block_cache::block &b = bc_.get(location, block_cache::GF_BARRIER, v);
block_cache::block &b = bc_.get(location, block_cache::GF_DIRTY | block_cache::GF_BARRIER, v);
return write_ref(b, superblock_ref_count_);
}