[metadata_counter] remove explicit try/catch when counting data space map

Unlike metadata_index_store, the constructor of btree_index_store
doesn't throw exceptions.
This commit is contained in:
Ming-Hung Tsai 2016-06-19 21:37:00 +08:00
parent 60eb608825
commit 9e7af6b677

View File

@ -41,12 +41,10 @@ void thin_provisioning::count_space_maps(transaction_manager::ptr tm,
}
// Count the data space map (no-throw)
try {
{
persistent_space_map::ptr data_sm =
open_disk_sm(*tm, static_cast<void *>(&sb.data_space_map_root_));
data_sm->count_metadata(bc);
} catch (std::exception &e) {
cerr << e.what() << endl;
}
}