From 3f5e95809f9af605940dc015181ac5bd4115968c Mon Sep 17 00:00:00 2001 From: Joe Thornber Date: Thu, 25 Aug 2011 16:13:54 +0100 Subject: [PATCH] include the btree roots in the ref count audit --- metadata.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/metadata.cc b/metadata.cc index 82ac2d7..ea9e253 100644 --- a/metadata.cc +++ b/metadata.cc @@ -360,10 +360,12 @@ metadata::check() mapping_validator::ptr mv(new mapping_validator(metadata_counter, data_counter)); + metadata_counter.inc(mappings_.get_root()); mappings_.visit(mv); set const &mapped_devs = mv->get_devices(); details_validator::ptr dv(new details_validator(metadata_counter)); + metadata_counter.inc(details_.get_root()); details_.visit(dv); set const &details_devs = dv->get_devices(); @@ -375,6 +377,7 @@ metadata::check() throw runtime_error(out.str()); } + metadata_counter.inc(SUPERBLOCK_LOCATION); metadata_sm_->check(metadata_counter); data_sm_->check(metadata_counter); errors->add_child(check_ref_counts("Errors in metadata block reference counts",