diff options
author | Alberto Massari <alberto.massari@mongodb.com> | 2022-12-21 19:56:54 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-12-21 21:14:53 +0000 |
commit | 5977e706431fd5705b59115ec0e0d2d7a2203246 (patch) | |
tree | 2161b9d853c2e7453a19d12b88bd39bc9bf87dd5 /src/mongo/db/transaction/transaction_participant.cpp | |
parent | 9ac3279cc3459b31a597ed4659e07ad93f073d8f (diff) | |
download | mongo-5977e706431fd5705b59115ec0e0d2d7a2203246.tar.gz |
SERVER-65364 Allow fine-grained selection of indexes to update
Diffstat (limited to 'src/mongo/db/transaction/transaction_participant.cpp')
-rw-r--r-- | src/mongo/db/transaction/transaction_participant.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<BSONObj>(startingSnapshotId, originalDoc), updateMod, - false, /* indexesAffected */ + collection_internal::kUpdateNoIndexes, nullptr, &args); |