diff options
author | Xiangyu Yao <xiangyu.yao@mongodb.com> | 2018-06-13 15:21:28 -0400 |
---|---|---|
committer | Xiangyu Yao <xiangyu.yao@mongodb.com> | 2018-06-19 17:09:50 -0400 |
commit | 1871507cdbdd492abee785076203467d20e0e716 (patch) | |
tree | cbd4419e90783af801ad3a239bdff4b27211e385 /src/mongo/db/commands/run_aggregate.cpp | |
parent | 1026f5e41426b85b49f3987028f2a63e17012aa6 (diff) | |
download | mongo-1871507cdbdd492abee785076203467d20e0e716.tar.gz |
SERVER-34113 Remove all support for snapshot reads outside multi-document transactions
Diffstat (limited to 'src/mongo/db/commands/run_aggregate.cpp')
-rw-r--r-- | src/mongo/db/commands/run_aggregate.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mongo/db/commands/run_aggregate.cpp b/src/mongo/db/commands/run_aggregate.cpp index f7a4611104a..09895800fe2 100644 --- a/src/mongo/db/commands/run_aggregate.cpp +++ b/src/mongo/db/commands/run_aggregate.cpp @@ -447,8 +447,7 @@ Status runAggregate(OperationContext* opCtx, uuid)); expCtx->tempDir = storageGlobalParams.dbpath + "/_tmp"; auto session = OperationContextSession::get(opCtx); - expCtx->inSnapshotReadOrMultiDocumentTransaction = - session && session->inSnapshotReadOrMultiDocumentTransaction(); + expCtx->inMultiDocumentTransaction = session && session->inMultiDocumentTransaction(); auto pipeline = uassertStatusOK(Pipeline::parse(request.getPipeline(), expCtx)); |