From dcf4b0a99ce3d85bf422a758b1e5e51398e748aa Mon Sep 17 00:00:00 2001 From: Joe Thornber Date: Tue, 29 Oct 2013 11:35:32 +0000 Subject: [PATCH] [cache_restore] Set the clean shutdown flag before the final commit --- caching/metadata.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/caching/metadata.cc b/caching/metadata.cc index bfb5a30..2d8ef83 100644 --- a/caching/metadata.cc +++ b/caching/metadata.cc @@ -132,7 +132,9 @@ metadata::commit_discard_bits() void metadata::commit_superblock() { + sb_.flags.set_flag(superblock_flags::CLEAN_SHUTDOWN); write_superblock(tm_->get_bm(), sb_); + sb_.flags.clear_flag(superblock_flags::CLEAN_SHUTDOWN); } //----------------------------------------------------------------