summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/find.cpp
diff options
context:
space:
mode:
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();