[cache_restore] Set the clean shutdown flag before the final commit

This commit is contained in:
Joe Thornber 2013-10-29 11:35:32 +00:00
parent 471abe52b9
commit dcf4b0a99c

View File

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