From 5977e706431fd5705b59115ec0e0d2d7a2203246 Mon Sep 17 00:00:00 2001 From: Alberto Massari Date: Wed, 21 Dec 2022 19:56:54 +0000 Subject: SERVER-65364 Allow fine-grained selection of indexes to update --- src/mongo/db/transaction/transaction_participant.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mongo/db/transaction/transaction_participant.cpp') diff --git a/src/mongo/db/transaction/transaction_participant.cpp b/src/mongo/db/transaction/transaction_participant.cpp index 2d5b49665d1..e615798495f 100644 --- a/src/mongo/db/transaction/transaction_participant.cpp +++ b/src/mongo/db/transaction/transaction_participant.cpp @@ -451,14 +451,14 @@ void updateSessionEntry(OperationContext* opCtx, args.criteria = toUpdateIdDoc; args.update = updateMod; - // Specify indexesAffected = false because the sessions collection has two indexes: {_id: 1} and + // Specify kUpdateNoIndexes because the sessions collection has two indexes: {_id: 1} and // {parentLsid: 1, _id.txnNumber: 1, _id: 1}, and none of the fields are mutable. collection_internal::updateDocument(opCtx, *collection, recordId, Snapshotted(startingSnapshotId, originalDoc), updateMod, - false, /* indexesAffected */ + collection_internal::kUpdateNoIndexes, nullptr, &args); -- cgit v1.2.1