[btree] use a block_ref_counter for internal nodes

This commit is contained in:
Joe Thornber
2013-06-20 14:27:40 +01:00
parent e89d81e318
commit 83a09e1a2a
8 changed files with 88 additions and 27 deletions

View File

@ -66,12 +66,12 @@ namespace persistent_data {
}
bool visit_internal(node_location const &loc,
btree_detail::node_ref<uint64_traits> const &n) {
btree_detail::node_ref<block_traits> const &n) {
return check_internal(loc, n);
}
bool visit_internal_leaf(node_location const &loc,
btree_detail::node_ref<uint64_traits> const &n) {
btree_detail::node_ref<block_traits> const &n) {
return check_leaf(loc, n);
}
@ -91,7 +91,7 @@ namespace persistent_data {
private:
bool check_internal(node_location const &loc,
btree_detail::node_ref<uint64_traits> const &n) {
btree_detail::node_ref<block_traits> const &n) {
if (!already_visited(n) &&
check_block_nr(n) &&
check_max_entries(n) &&