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

Method set

src/QLContext.actor.cpp:263–271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

261 }
262
263 void set(Reference<DocTransaction> tr, DataKey key, ValueRef value) override {
264 DataKey documentPrefix = key.keyPrefix(collectionPath.size() + 1);
265 auto docDeferred = shouldDoUpdate(tr, documentPrefix);
266 if (docDeferred->dirty.insert(this).second) {
267 docDeferred->index_update_actors.push_back(doIndexUpdate(tr, docDeferred, documentPrefix));
268 }
269
270 next->set(tr, key, value);
271 }
272
273 void clear(Reference<DocTransaction> tr, DataKey key) override {
274 DataKey documentPrefix = key.keyPrefix(collectionPath.size() + 1);

Callers

nothing calls this directly

Calls 4

keyPrefixMethod · 0.80
sizeMethod · 0.45
insertMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected