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

Method indexNeedsShift

source/core/StarBTreeDatabase.cpp:550–552  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

548}
549
550bool BTreeDatabase::BTreeImpl::indexNeedsShift(Index const& index) {
551 return index->pointerCount() < (parent->maxIndexPointers() + 1) / 2;
552}
553
554bool BTreeDatabase::BTreeImpl::indexShift(Index const& left, Key const& mid, Index const& right) {
555 if (left->pointerCount() + right->pointerCount() <= parent->maxIndexPointers()) {

Callers

nothing calls this directly

Calls 2

maxIndexPointersMethod · 0.80
pointerCountMethod · 0.45

Tested by

no test coverage detected