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

Method erase_from_leaf_node

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

Source from the content-addressed store, hash-verified

2135
2136template <typename P>
2137auto btree<P>::erase_from_leaf_node(iterator begin, size_type to_erase)
2138 -> iterator {
2139 node_type *node = begin.node;
2140 assert(node->leaf());
2141 assert(node->count() > begin.position);
2142 assert(begin.position + to_erase <= node->count());
2143
2144 node->remove_values_ignore_children(begin.position, to_erase,
2145 mutable_allocator());
2146
2147 size_ -= to_erase;
2148
2149 return rebalance_after_delete(begin);
2150}
2151
2152template <typename P>
2153template <typename K>

Callers

nothing calls this directly

Calls 4

assertFunction · 0.85
leafMethod · 0.80
countMethod · 0.45

Tested by

no test coverage detected