[btree_damage_visitor_t] Store the btree path in the node_info rather than the level.
This commit is contained in:
parent
93ba17a3f4
commit
30c9e0a005
@ -66,9 +66,10 @@ namespace {
|
|||||||
struct node_info {
|
struct node_info {
|
||||||
typedef boost::shared_ptr<node_info> ptr;
|
typedef boost::shared_ptr<node_info> ptr;
|
||||||
|
|
||||||
|
btree_detail::btree_path path;
|
||||||
|
|
||||||
bool leaf;
|
bool leaf;
|
||||||
unsigned depth;
|
unsigned depth;
|
||||||
unsigned level;
|
|
||||||
block_address b;
|
block_address b;
|
||||||
range<uint64_t> keys;
|
range<uint64_t> keys;
|
||||||
};
|
};
|
||||||
@ -198,9 +199,9 @@ namespace {
|
|||||||
void record_node(bool leaf, node_location const &loc, N const &n) {
|
void record_node(bool leaf, node_location const &loc, N const &n) {
|
||||||
node_info::ptr ni(new node_info);
|
node_info::ptr ni(new node_info);
|
||||||
|
|
||||||
|
ni->path = loc.path;
|
||||||
ni->leaf = leaf;
|
ni->leaf = leaf;
|
||||||
ni->depth = loc.depth;
|
ni->depth = loc.depth;
|
||||||
ni->level = loc.level();
|
|
||||||
ni->b = n.get_location();
|
ni->b = n.get_location();
|
||||||
|
|
||||||
if (n.get_nr_entries())
|
if (n.get_nr_entries())
|
||||||
|
Loading…
Reference in New Issue
Block a user