[metadata check] increment the ref count for the held root

This commit is contained in:
Joe Thornber 2012-02-10 11:58:12 +00:00
parent d4a3e56d54
commit 426e23278f

View File

@ -149,6 +149,9 @@ thin_provisioning::metadata_check(metadata::ptr md)
block_counter metadata_counter, data_counter;
if (md->sb_.held_root_)
metadata_counter.inc(md->sb_.held_root_);
mapping_validator::ptr mv(new mapping_validator(metadata_counter,
data_counter));
md->mappings_->visit(mv);