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