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