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

Class ExtInsert

src/ExtMsg.actor.cpp:685–696  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

683}
684
685struct ExtInsert : ConcreteInsertOp<ExtInsert> {
686 bson::BSONObj obj;
687 Optional<IdInfo> encodedIds;
688
689 ExtInsert(bson::BSONObj obj, Optional<IdInfo> encodedIds) : obj(obj), encodedIds(encodedIds) {}
690
691 std::string describe() override { return "Insert(" + obj.toString() + ")"; }
692
693 Future<Reference<IReadWriteContext>> insert(Reference<CollectionContext> cx) override {
694 return insertDocument(cx, obj, encodedIds);
695 }
696};
697
698struct ExtIndexInsert : ConcreteInsertOp<ExtIndexInsert> {
699 bson::BSONObj indexObj;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected