MCPcopy Create free account
hub / github.com/apple/foundationdb / keep

Method keep

fdbserver/VersionedBTree.actor.cpp:6446–6459  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6444 }
6445
6446 void keep(BTreePage::BinaryTree::Cursor begin, BTreePage::BinaryTree::Cursor end) {
6447 if (!updating) {
6448 while (begin != end) {
6449 debug_printf("internal page (rebuilding) keeping: %s\n", begin.get().toString(false).c_str());
6450 rebuild.push_back(rebuild.arena(), begin.get());
6451 begin.moveNext();
6452 }
6453 } else if (REDWOOD_DEBUG) {
6454 while (begin != end) {
6455 debug_printf("internal page (updating) keeping: %s\n", begin.get().toString(false).c_str());
6456 begin.moveNext();
6457 }
6458 }
6459 }
6460
6461 // This must be called for each of the InternalPageSliceUpdates in sorted order.
6462 void applyUpdate(InternalPageSliceUpdate& u, const RedwoodRecordRef* nextBoundary) {

Callers

nothing calls this directly

Calls 5

getMethod · 0.65
c_strMethod · 0.45
toStringMethod · 0.45
push_backMethod · 0.45
moveNextMethod · 0.45

Tested by

no test coverage detected