[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:
parent
60eb608825
commit
9e7af6b677
@ -41,12 +41,10 @@ void thin_provisioning::count_space_maps(transaction_manager::ptr tm,
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Count the data space map (no-throw)
|
// Count the data space map (no-throw)
|
||||||
try {
|
{
|
||||||
persistent_space_map::ptr data_sm =
|
persistent_space_map::ptr data_sm =
|
||||||
open_disk_sm(*tm, static_cast<void *>(&sb.data_space_map_root_));
|
open_disk_sm(*tm, static_cast<void *>(&sb.data_space_map_root_));
|
||||||
data_sm->count_metadata(bc);
|
data_sm->count_metadata(bc);
|
||||||
} catch (std::exception &e) {
|
|
||||||
cerr << e.what() << endl;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user