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

Method is_root

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

Getter for whether the node is the root of the tree. The parent of the root of the tree is the leftmost node in the tree which is guaranteed to be a leaf.

Source from the content-addressed store, hash-verified

500 // root of the tree is the leftmost node in the tree which is guaranteed to
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());

Callers 3

make_rootMethod · 0.45
increment_slowMethod · 0.45
decrement_slowMethod · 0.45

Calls 2

parentFunction · 0.85
leafMethod · 0.80

Tested by

no test coverage detected