diff options
Diffstat (limited to 'src/mongo/db/service_entry_point_common.cpp')
-rw-r--r-- | src/mongo/db/service_entry_point_common.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/db/service_entry_point_common.cpp b/src/mongo/db/service_entry_point_common.cpp index b14d1c88f38..1a4c7fdf239 100644 --- a/src/mongo/db/service_entry_point_common.cpp +++ b/src/mongo/db/service_entry_point_common.cpp @@ -1379,7 +1379,7 @@ DbResponse receivedCommands(OperationContext* opCtx, const auto session = opCtx->getClient()->session(); if (session) { - if (!opCtx->isExhaust() || c->getName() != "hello"_sd) { + if (!opCtx->isExhaust() || c->getName() != "isMaster"_sd) { InExhaustIsMaster::get(session.get())->setInExhaustIsMaster(false); } } @@ -1716,7 +1716,8 @@ DbResponse ServiceEntryPointCommon::handleRequest(OperationContext* opCtx, if (op == dbMsg || (op == dbQuery && isCommand)) { dbresponse = receivedCommands(opCtx, m, behaviors); // IsMaster should take kMaxAwaitTimeMs at most, log if it takes twice that. - if (auto command = currentOp.getCommand(); command && (command->getName() == "hello")) { + if (auto command = currentOp.getCommand(); + command && (command->getName() == "ismaster" || command->getName() == "isMaster")) { slowMsOverride = 2 * durationCount<Milliseconds>(SingleServerIsMasterMonitor::kMaxAwaitTime); } |