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

Method insertFragment

fdbserver/KeyValueStoreSQLite.actor.cpp:791–794  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

789 return KeyRef(d, s);
790 }
791 void insertFragment(KeyValueRef kv, uint32_t index, int seekResult) {
792 Value v = encodeKVFragment(kv, index);
793 db.checkError("BtreeInsert", sqlite3BtreeInsert(cursor, v.begin(), v.size(), nullptr, 0, 0, 0, seekResult));
794 }
795 void remove() { db.checkError("BtreeDelete", sqlite3BtreeDelete(cursor)); }
796 void set(KeyValueRef kv) {
797 if (db.fragment_values) {

Callers

nothing calls this directly

Calls 5

encodeKVFragmentFunction · 0.85
sqlite3BtreeInsertFunction · 0.85
checkErrorMethod · 0.45
beginMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected