From 30c9e0a005b39ec33572fdc7ace16ad075810aed Mon Sep 17 00:00:00 2001 From: Joe Thornber Date: Fri, 17 May 2013 11:53:16 +0100 Subject: [PATCH] [btree_damage_visitor_t] Store the btree path in the node_info rather than the level. --- unit-tests/btree_damage_visitor_t.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/unit-tests/btree_damage_visitor_t.cc b/unit-tests/btree_damage_visitor_t.cc index af2136b..e77c853 100644 --- a/unit-tests/btree_damage_visitor_t.cc +++ b/unit-tests/btree_damage_visitor_t.cc @@ -66,9 +66,10 @@ namespace { struct node_info { typedef boost::shared_ptr ptr; + btree_detail::btree_path path; + bool leaf; unsigned depth; - unsigned level; block_address b; range keys; }; @@ -198,9 +199,9 @@ namespace { void record_node(bool leaf, node_location const &loc, N const &n) { node_info::ptr ni(new node_info); + ni->path = loc.path; ni->leaf = leaf; ni->depth = loc.depth; - ni->level = loc.level(); ni->b = n.get_location(); if (n.get_nr_entries())