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

Method clearOne

fdbserver/KeyValueStoreSQLite.actor.cpp:896–903  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

894 }
895 }
896 void clearOne(KeyRangeRef keys) {
897 ASSERT(!db.fragment_values);
898 int r = moveTo(keys.begin);
899 if (r < 0)
900 moveNext();
901 ASSERT(valid && decodeKV(getEncodedRow()).key < keys.end);
902 remove();
903 }
904 void clear(KeyRangeRef keys) {
905 // TODO: This is really slow!
906 while (true) {

Callers

nothing calls this directly

Calls 4

moveToFunction · 0.85
moveNextFunction · 0.85
decodeKVFunction · 0.85
removeFunction · 0.70

Tested by

no test coverage detected