diff options
author | Xiangyu Yao <xiangyu.yao@mongodb.com> | 2018-03-07 15:10:10 -0500 |
---|---|---|
committer | Xiangyu Yao <xiangyu.yao@mongodb.com> | 2018-03-09 18:06:06 -0500 |
commit | 4ef0fe789ef349307c4cffd6548dc8657059cca5 (patch) | |
tree | d13f1dd19a97ca4e9a1e082f566bb0d59cee3147 /src/mongo/db/db_raii.cpp | |
parent | ed1e2b4d2a4987e3744484f9482fdc7a0e119e94 (diff) | |
download | mongo-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.cpp | 2 |
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()); |