summaryrefslogtreecommitdiff
path: root/src/mongo/db/service_entry_point_mongod.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/service_entry_point_mongod.cpp')
-rw-r--r--src/mongo/db/service_entry_point_mongod.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mongo/db/service_entry_point_mongod.cpp b/src/mongo/db/service_entry_point_mongod.cpp
index a442f40ee27..eb281981054 100644
--- a/src/mongo/db/service_entry_point_mongod.cpp
+++ b/src/mongo/db/service_entry_point_mongod.cpp
@@ -52,16 +52,15 @@ public:
void waitForReadConcern(OperationContext* opCtx,
const CommandInvocation* invocation,
- const std::string& db,
- const OpMsgRequest& request,
- const BSONObj& cmdObj) const override {
+ const OpMsgRequest& request) const override {
Status rcStatus = mongo::waitForReadConcern(
opCtx, repl::ReadConcernArgs::get(opCtx), invocation->allowsAfterClusterTime());
+
if (!rcStatus.isOK()) {
if (rcStatus == ErrorCodes::ExceededTimeLimit) {
const int debugLevel =
serverGlobalParams.clusterRole == ClusterRole::ConfigServer ? 0 : 2;
- LOG(debugLevel) << "Command on database " << db
+ LOG(debugLevel) << "Command on database " << request.getDatabase()
<< " timed out waiting for read concern to be satisfied. Command: "
<< redact(ServiceEntryPointCommon::getRedactedCopyForLogging(
invocation->definition(), request.body));