| 683 | } |
| 684 | |
| 685 | struct 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 | |
| 698 | struct ExtIndexInsert : ConcreteInsertOp<ExtIndexInsert> { |
| 699 | bson::BSONObj indexObj; |
nothing calls this directly
no outgoing calls
no test coverage detected