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

Method execute

src/ExtOperator.actor.cpp:314–321  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

312struct ExtUpdateOperatorRename {
313 static const char* name;
314 static Future<Void> execute(Reference<IReadWriteContext> cx,
315 StringRef const& path,
316 bson::BSONElement const& element) {
317 Reference<IReadWriteContext> firstCx = cx->getSubContext(path.toString());
318 Reference<IReadWriteContext> secondCx = cx->getSubContext(encodeMaybeDotted(element.String()));
319
320 return doRenameActor(firstCx, secondCx, cx, upOneLevel(element.String()), getLastPart(element.String()));
321 }
322};
323
324REGISTER_UPDATE_OPERATOR(ExtUpdateOperatorRename, "$rename");

Callers

nothing calls this directly

Calls 5

encodeMaybeDottedFunction · 0.85
upOneLevelFunction · 0.85
getLastPartFunction · 0.85
getSubContextMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected