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

Function extractEncodedIdsFromUpdate

src/ExtUtil.actor.cpp:775–784  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

773}
774
775Optional<IdInfo> extractEncodedIdsFromUpdate(bson::BSONObj update) {
776 for (auto i = update.begin(); i.more();) {
777 auto el = i.next();
778 std::string operatorName = el.fieldName();
779 if (operatorName == "$set" || operatorName == "$setOnInsert") {
780 return extractEncodedIds(el.Obj());
781 }
782 }
783 return Optional<IdInfo>();
784}
785
786Future<Reference<Plan>> getIndexesForCollectionPlan(Namespace const& ns,
787 Reference<DocTransaction> tr,

Callers 1

upsertActorMethod · 0.85

Calls 2

extractEncodedIdsFunction · 0.85
beginMethod · 0.80

Tested by

no test coverage detected