From 426e23278f891c48da1e62054c58b9073e189c38 Mon Sep 17 00:00:00 2001 From: Joe Thornber Date: Fri, 10 Feb 2012 11:58:12 +0000 Subject: [PATCH] [metadata check] increment the ref count for the held root --- metadata_checker.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/metadata_checker.cc b/metadata_checker.cc index 1dd3231..3d3fe1a 100644 --- a/metadata_checker.cc +++ b/metadata_checker.cc @@ -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);