[metadata_checker] Do not update the superblock if the needs_check flag is not set
This commit is contained in:
parent
3f19818c56
commit
2d9eaa1c56
@ -449,6 +449,10 @@ namespace {
|
|||||||
|
|
||||||
block_manager::ptr bm = open_bm(path_, block_manager::READ_WRITE);
|
block_manager::ptr bm = open_bm(path_, block_manager::READ_WRITE);
|
||||||
superblock_detail::superblock sb = read_superblock(bm);
|
superblock_detail::superblock sb = read_superblock(bm);
|
||||||
|
|
||||||
|
if (!sb.get_needs_check_flag())
|
||||||
|
return true;
|
||||||
|
|
||||||
sb.set_needs_check_flag(false);
|
sb.set_needs_check_flag(false);
|
||||||
write_superblock(bm, sb);
|
write_superblock(bm, sb);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user