MCPcopy Create free account
hub / github.com/ceph/ceph / make_root

Method make_root

src/include/cpp-btree/btree.h:503–506  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

501 // be a leaf.
502 bool is_root() const { return parent()->leaf(); }
503 void make_root() {
504 assert(parent()->is_root());
505 set_parent(parent()->parent());
506 }
507
508 // Getters for the key/value at position i in the node.
509 const key_type& key(int i) const { return params_type::key(slot(i)); }

Callers 1

try_shrinkMethod · 0.45

Calls 5

assertFunction · 0.85
parentFunction · 0.85
set_parentFunction · 0.50
is_rootMethod · 0.45
parentMethod · 0.45

Tested by

no test coverage detected