summaryrefslogtreecommitdiff
path: root/src/mongo/db/db_raii.cpp
diff options
context:
space:
mode:
authorXiangyu Yao <xiangyu.yao@mongodb.com>2018-03-07 15:10:10 -0500
committerXiangyu Yao <xiangyu.yao@mongodb.com>2018-03-09 18:06:06 -0500
commit4ef0fe789ef349307c4cffd6548dc8657059cca5 (patch)
treed13f1dd19a97ca4e9a1e082f566bb0d59cee3147 /src/mongo/db/db_raii.cpp
parented1e2b4d2a4987e3744484f9482fdc7a0e119e94 (diff)
downloadmongo-4ef0fe789ef349307c4cffd6548dc8657059cca5.tar.gz
SERVER-33609 Pass readConcernLevel to WiredTigerRecoveryUnit
Diffstat (limited to 'src/mongo/db/db_raii.cpp')
-rw-r--r--src/mongo/db/db_raii.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/db_raii.cpp b/src/mongo/db/db_raii.cpp
index 6b9a695d02b..f42857afb76 100644
--- a/src/mongo/db/db_raii.cpp
+++ b/src/mongo/db/db_raii.cpp
@@ -104,7 +104,7 @@ AutoGetCollectionForRead::AutoGetCollectionForRead(OperationContext* opCtx,
repl::ReplicationCoordinator::get(opCtx)->waitUntilSnapshotCommitted(opCtx, *minSnapshot);
- uassertStatusOK(opCtx->recoveryUnit()->setReadFromMajorityCommittedSnapshot());
+ uassertStatusOK(opCtx->recoveryUnit()->obtainMajorityCommittedSnapshot());
{
stdx::lock_guard<Client> lk(*opCtx->getClient());