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

Method initReadOnly

fdbserver/VersionedBTree.actor.cpp:663–666  ·  view source on GitHub ↗

A read cursor can be initialized from a pop cursor

Source from the content-addressed store, hash-verified

661
662 // A read cursor can be initialized from a pop cursor
663 void initReadOnly(const Cursor& c, bool readExtents = false) {
664 ASSERT(c.mode == READONLY || c.mode == POP);
665 init(c.queue, READONLY, c.pageID, readExtents, false, c.endPageID, c.offset);
666 }
667
668 std::string toString() const {
669 if (mode == WRITE) {

Calls 1

initFunction · 0.70

Tested by

no test coverage detected