summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/find.cpp
diff options
context:
space:
mode:
authorWilliam Schultz <william.schultz@mongodb.com>2018-11-15 18:13:44 -0500
committerWilliam Schultz <william.schultz@mongodb.com>2018-11-15 18:13:44 -0500
commit72789f5739982af1cbdb1dd4fa181c4924f657b3 (patch)
tree24c2087ed4e3cdbb0f3a4c180669eb40623a3b75 /src/mongo/db/query/find.cpp
parent8caf07e68313dea0bd60dd4bdfa6fe85bca40b69 (diff)
downloadmongo-72789f5739982af1cbdb1dd4fa181c4924f657b3.tar.gz
SERVER-37560 Store ReadConcernArgs on cursor object instead of ReadConcernLevel
Diffstat (limited to 'src/mongo/db/query/find.cpp')
-rw-r--r--src/mongo/db/query/find.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/query/find.cpp b/src/mongo/db/query/find.cpp
index 08d43c05df0..bdeeb907c45 100644
--- a/src/mongo/db/query/find.cpp
+++ b/src/mongo/db/query/find.cpp
@@ -356,7 +356,7 @@ Message getMore(OperationContext* opCtx,
const auto replicationMode = repl::ReplicationCoordinator::get(opCtx)->getReplicationMode();
if (replicationMode == repl::ReplicationCoordinator::modeReplSet &&
- cc->getReadConcernLevel() == repl::ReadConcernLevel::kMajorityReadConcern) {
+ cc->getReadConcernArgs().getLevel() == repl::ReadConcernLevel::kMajorityReadConcern) {
opCtx->recoveryUnit()->setTimestampReadSource(
RecoveryUnit::ReadSource::kMajorityCommitted);
uassertStatusOK(opCtx->recoveryUnit()->obtainMajorityCommittedSnapshot());
@@ -676,7 +676,7 @@ std::string runQuery(OperationContext* opCtx,
{std::move(exec),
nss,
AuthorizationSession::get(opCtx->getClient())->getAuthenticatedUserNames(),
- readConcernArgs.getLevel(),
+ readConcernArgs,
upconvertedQuery});
ccId = pinnedCursor.getCursor()->cursorid();