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); } //----------------------------------------------------------------