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

Method resetRead

fdbserver/VersionedBTree.actor.cpp:649–655  ·  view source on GitHub ↗

Reset the read cursor (this is used only for extent based remap queue after recovering the remap queue contents via fastpath extent reads)

Source from the content-addressed store, hash-verified

647 // Reset the read cursor (this is used only for extent based remap queue after recovering the remap
648 // queue contents via fastpath extent reads)
649 void resetRead() {
650 ASSERT(mode == POP || mode == READONLY);
651 page.clear();
652 if (pageID != endPageID) {
653 startNextPageLoad(pageID);
654 }
655 }
656
657 // Since cursors can have async operations pending which modify their state they can't be copied cleanly
658 Cursor(const Cursor& other) = delete;

Callers 1

resetHeadReaderMethod · 0.80

Calls 1

clearMethod · 0.65

Tested by

no test coverage detected