| 806 | } |
| 807 | |
| 808 | void 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 | |
| 816 | size_t BTreeDatabase::BTreeImpl::indexPointerCount(Index const& index) { |
| 817 | return index->pointerCount(); |
no test coverage detected