| 773 | } |
| 774 | |
| 775 | Optional<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 | |
| 786 | Future<Reference<Plan>> getIndexesForCollectionPlan(Namespace const& ns, |
| 787 | Reference<DocTransaction> tr, |
no test coverage detected