summaryrefslogtreecommitdiff
path: root/src/mongo/db/transaction_participant.cpp
diff options
context:
space:
mode:
authorSamyukta Lanka <samy.lanka@mongodb.com>2019-09-03 21:36:32 +0000
committerevergreen <evergreen@mongodb.com>2019-09-03 21:36:32 +0000
commit720e7b216316eac5f5dc18f26684cd2ca1ed17e2 (patch)
tree18090b262a585c6b085d1678550e46d2ac973f40 /src/mongo/db/transaction_participant.cpp
parentff685d2d6e370594261eccbef8e60b2f7cc61e28 (diff)
downloadmongo-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.cpp2
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.