summaryrefslogtreecommitdiff
path: root/src/mongo/db/transaction/transaction_participant.cpp
diff options
context:
space:
mode:
authorAlberto Massari <alberto.massari@mongodb.com>2022-12-21 19:56:54 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-12-21 21:14:53 +0000
commit5977e706431fd5705b59115ec0e0d2d7a2203246 (patch)
tree2161b9d853c2e7453a19d12b88bd39bc9bf87dd5 /src/mongo/db/transaction/transaction_participant.cpp
parent9ac3279cc3459b31a597ed4659e07ad93f073d8f (diff)
downloadmongo-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.cpp4
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);