From 72789f5739982af1cbdb1dd4fa181c4924f657b3 Mon Sep 17 00:00:00 2001 From: William Schultz Date: Thu, 15 Nov 2018 18:13:44 -0500 Subject: SERVER-37560 Store ReadConcernArgs on cursor object instead of ReadConcernLevel --- src/mongo/db/query/find.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mongo/db/query/find.cpp') 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(); -- cgit v1.2.1