From 930cc9d41275d73006cd568567e12e5b8311346e Mon Sep 17 00:00:00 2001 From: Joe Thornber Date: Thu, 21 Aug 2014 14:25:02 +0100 Subject: [PATCH] [block-manager] Superblocks weren't being marked as DIRTY Gulp --- persistent-data/block.tcc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/persistent-data/block.tcc b/persistent-data/block.tcc index 4867efc..f2f3a7a 100644 --- a/persistent-data/block.tcc +++ b/persistent-data/block.tcc @@ -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_); }