summaryrefslogtreecommitdiff
path: root/src/mongo/db/read_concern.cpp
diff options
context:
space:
mode:
authorXiangyu Yao <xiangyu.yao@mongodb.com>2018-06-13 15:21:28 -0400
committerXiangyu Yao <xiangyu.yao@mongodb.com>2018-06-19 17:09:50 -0400
commit1871507cdbdd492abee785076203467d20e0e716 (patch)
treecbd4419e90783af801ad3a239bdff4b27211e385 /src/mongo/db/read_concern.cpp
parent1026f5e41426b85b49f3987028f2a63e17012aa6 (diff)
downloadmongo-1871507cdbdd492abee785076203467d20e0e716.tar.gz
SERVER-34113 Remove all support for snapshot reads outside multi-document transactions
Diffstat (limited to 'src/mongo/db/read_concern.cpp')
-rw-r--r--src/mongo/db/read_concern.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/db/read_concern.cpp b/src/mongo/db/read_concern.cpp
index c5fade9dcb1..b8215af1610 100644
--- a/src/mongo/db/read_concern.cpp
+++ b/src/mongo/db/read_concern.cpp
@@ -217,12 +217,12 @@ Status waitForReadConcern(OperationContext* opCtx,
repl::ReplicationCoordinator* const replCoord = repl::ReplicationCoordinator::get(opCtx);
invariant(replCoord);
- // Currently speculative read concern is used only for transactions and snapshot reads. However,
- // speculative read concern is not yet supported with atClusterTime.
+ // Currently speculative read concern is used only for transactions. However, speculative read
+ // concern is not yet supported with atClusterTime.
//
// TODO SERVER-34620: Re-enable speculative behavior when "atClusterTime" is specified.
- const bool speculative = session && session->inSnapshotReadOrMultiDocumentTransaction() &&
- !readConcernArgs.getArgsAtClusterTime();
+ const bool speculative =
+ session && session->inMultiDocumentTransaction() && !readConcernArgs.getArgsAtClusterTime();
if (readConcernArgs.getLevel() == repl::ReadConcernLevel::kLinearizableReadConcern) {
if (replCoord->getReplicationMode() != repl::ReplicationCoordinator::modeReplSet) {