Introduce mapping_tree.h

This commit is contained in:
Joe Thornber
2013-05-20 17:37:46 +01:00
parent 35880f3038
commit 8f2ab2d676
7 changed files with 140 additions and 113 deletions

View File

@@ -114,7 +114,7 @@ namespace {
throw runtime_error("not in device");
uint64_t key[1] = {origin_block};
block_time bt;
mapping_tree_detail::block_time bt;
bt.block_ = data_block;
bt.time_ = time;
current_mapping_->insert(key, bt);
@@ -125,7 +125,7 @@ namespace {
single_mapping_tree::ptr new_mapping_tree() {
return single_mapping_tree::ptr(
new single_mapping_tree(md_->tm_,
block_time_ref_counter(md_->data_sm_)));
mapping_tree_detail::block_time_ref_counter(md_->data_sm_)));
}
bool device_exists(thin_dev_t dev) const {