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

Method destroyCursor

fdbserver/KeyValueStoreSQLite.actor.cpp:740–749  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

738 }
739 ~RawCursor() { destroyCursor(); }
740 void destroyCursor() {
741 if (cursor) {
742 try {
743 db.checkError("BtreeCloseCursor", sqlite3BtreeCloseCursor(cursor));
744 } catch (...) {
745 TraceEvent(SevError, "RawCursorDestructionError").log();
746 }
747 delete[](char*) cursor;
748 }
749 }
750 void moveFirst() {
751 int empty = 1;
752 db.checkError("BtreeFirst", sqlite3BtreeFirst(cursor, &empty));

Callers

nothing calls this directly

Calls 4

sqlite3BtreeCloseCursorFunction · 0.85
TraceEventClass · 0.85
checkErrorMethod · 0.45
logMethod · 0.45

Tested by

no test coverage detected