MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / deleteLeaf

Method deleteLeaf

source/core/StarBTreeDatabase.cpp:808–814  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

806}
807
808void BTreeDatabase::BTreeImpl::deleteLeaf(Leaf leaf) {
809 List<BlockIndex> tailBlocks = parent->leafTailBlocks(leaf->self);
810 for (uint32_t i = 0; i < tailBlocks.size(); ++i)
811 parent->freeBlock(tailBlocks[i]);
812
813 parent->freeBlock(leaf->self);
814}
815
816size_t BTreeDatabase::BTreeImpl::indexPointerCount(Index const& index) {
817 return index->pointerCount();

Callers 1

flattenVisitorMethod · 0.45

Calls 3

leafTailBlocksMethod · 0.80
freeBlockMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected