[metadata_checker] Support in-place metadata space map modification

This commit is contained in:
Ming-Hung Tsai
2020-08-12 11:37:39 +08:00
parent 0349e9c9e2
commit 6c90f9483e
3 changed files with 25 additions and 3 deletions

View File

@@ -69,6 +69,12 @@ namespace persistent_data {
bm_->prefetch(b);
}
// mark a block as shadowed,
// for the purpose of in-place modification
void mark_shadowed(block_address b) {
add_shadow(b);
}
private:
void add_shadow(block_address b);
void remove_shadow(block_address b);