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

Function shouldCreateRoot

src/ExtMsg.actor.cpp:1004–1009  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1002}
1003
1004bool shouldCreateRoot(std::string operatorName) {
1005 return operatorName == DocLayerConstants::SET || operatorName == DocLayerConstants::INC ||
1006 operatorName == DocLayerConstants::MUL || operatorName == DocLayerConstants::CURRENT_DATE ||
1007 operatorName == DocLayerConstants::MAX || operatorName == DocLayerConstants::MIN ||
1008 operatorName == DocLayerConstants::PUSH || operatorName == DocLayerConstants::ADD_TO_SET;
1009}
1010
1011ACTOR Future<Void> updateDocument(Reference<IReadWriteContext> cx,
1012 bson::BSONObj update,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected