MCPcopy Create free account
hub / github.com/FoundationDB/fdb-document-layer / clear

Method clear

src/QLContext.actor.cpp:273–281  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

271 }
272
273 void clear(Reference<DocTransaction> tr, DataKey key) override {
274 DataKey documentPrefix = key.keyPrefix(collectionPath.size() + 1);
275 auto docDeferred = shouldDoUpdate(tr, documentPrefix);
276 if (docDeferred->dirty.insert(this).second) {
277 docDeferred->index_update_actors.push_back(doIndexUpdate(tr, docDeferred, documentPrefix));
278 }
279
280 next->clear(tr, key);
281 }
282
283 void clearDescendants(Reference<DocTransaction> tr, DataKey key) override {
284 DataKey documentPrefix = key.keyPrefix(collectionPath.size() + 1);

Callers

nothing calls this directly

Calls 4

keyPrefixMethod · 0.80
sizeMethod · 0.45
insertMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected