summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/pipeline.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/pipeline/pipeline.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/pipeline/pipeline.cpp')
-rw-r--r--src/mongo/db/pipeline/pipeline.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mongo/db/pipeline/pipeline.cpp b/src/mongo/db/pipeline/pipeline.cpp
index 6654b836a3e..dcd8359324f 100644
--- a/src/mongo/db/pipeline/pipeline.cpp
+++ b/src/mongo/db/pipeline/pipeline.cpp
@@ -231,10 +231,9 @@ void Pipeline::validateCommon() const {
str::stream() << stage->getSourceName() << " can only be run on mongoS",
!(constraints.hostRequirement == HostTypeRequirement::kMongoS && !pCtx->inMongos));
- if (pCtx->inSnapshotReadOrMultiDocumentTransaction) {
+ if (pCtx->inMultiDocumentTransaction) {
uassert(50742,
- str::stream() << "Stage not supported with readConcern level \"snapshot\" "
- "or inside of a multi-document transaction: "
+ str::stream() << "Stage not supported inside of a multi-document transaction: "
<< stage->getSourceName(),
constraints.isAllowedInTransaction());
}