diff options
author | Samyukta Lanka <samy.lanka@mongodb.com> | 2019-09-03 21:36:32 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2019-09-03 21:36:32 +0000 |
commit | 720e7b216316eac5f5dc18f26684cd2ca1ed17e2 (patch) | |
tree | 18090b262a585c6b085d1678550e46d2ac973f40 /src/mongo/db/transaction_participant.cpp | |
parent | ff685d2d6e370594261eccbef8e60b2f7cc61e28 (diff) | |
download | mongo-720e7b216316eac5f5dc18f26684cd2ca1ed17e2.tar.gz |
SERVER-41359 Stop upconverting readConcern to snapshot internally for transactions
Diffstat (limited to 'src/mongo/db/transaction_participant.cpp')
-rw-r--r-- | src/mongo/db/transaction_participant.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/transaction_participant.cpp b/src/mongo/db/transaction_participant.cpp index 6fd7072e82b..e01ffa8a10e 100644 --- a/src/mongo/db/transaction_participant.cpp +++ b/src/mongo/db/transaction_participant.cpp @@ -586,7 +586,7 @@ void TransactionParticipant::Participant::_setReadSnapshot(OperationContext* opC stdx::lock_guard<Client> lk(*opCtx->getClient()); o(lk).transactionMetricsObserver.onChooseReadTimestamp(readTimestamp); - } else if (readConcernArgs.getOriginalLevel() == repl::ReadConcernLevel::kSnapshotReadConcern) { + } else if (readConcernArgs.getLevel() == repl::ReadConcernLevel::kSnapshotReadConcern) { // For transactions with read concern level specified as 'snapshot', we will use // 'kAllDurableSnapshot' which ensures a snapshot with no 'holes'; that is, it is a state // of the system that could be reconstructed from the oplog. |