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

Method execute

src/ExtOperator.actor.cpp:251–258  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

249struct ExtUpdateOperatorSet {
250 static const char* name;
251 static Future<Void> execute(Reference<IReadWriteContext> cx,
252 StringRef const& path,
253 bson::BSONElement const& element) {
254 ASSERT(path == encodeMaybeDotted(element.fieldName()));
255 cx->getSubContext(path)->clearDescendants();
256 insertElementRecursive(element, cx);
257 return Void();
258 }
259};
260REGISTER_UPDATE_OPERATOR(ExtUpdateOperatorSet, "$set");
261

Callers

nothing calls this directly

Calls 4

encodeMaybeDottedFunction · 0.85
insertElementRecursiveFunction · 0.85
clearDescendantsMethod · 0.45
getSubContextMethod · 0.45

Tested by

no test coverage detected