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

Class ExtUpdateOperatorBit

src/ExtOperator.actor.cpp:495–506  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

493}
494
495struct ExtUpdateOperatorBit {
496 static const char* name;
497 static Future<Void> execute(Reference<IReadWriteContext> cx,
498 StringRef const& path,
499 bson::BSONElement const& element) {
500 auto obj = element.Obj();
501 if (obj.nFields() != 1)
502 throw invalid_bitwise_update();
503
504 return getValueAndBitwise(cx, path, obj);
505 }
506};
507
508REGISTER_UPDATE_OPERATOR(ExtUpdateOperatorBit, "$bit");
509

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected