diff options
author | huayu-ouyang <huayu.ouyang@mongodb.com> | 2020-09-17 22:28:41 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-09-24 18:13:58 +0000 |
commit | f44ef61bcfe5a58fefd3617040fd1cbf0534594d (patch) | |
tree | b57ca1cbf078bd2b0cff8e36dfb13821abf687ab /src/mongo/s/commands/cluster_is_master_cmd.cpp | |
parent | 68fe070e7f60879ccbe45e1f6ec953bb99d95075 (diff) | |
download | mongo-f44ef61bcfe5a58fefd3617040fd1cbf0534594d.tar.gz |
SERVER-50418 Add exhaustHello to serverStatus
Diffstat (limited to 'src/mongo/s/commands/cluster_is_master_cmd.cpp')
-rw-r--r-- | src/mongo/s/commands/cluster_is_master_cmd.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mongo/s/commands/cluster_is_master_cmd.cpp b/src/mongo/s/commands/cluster_is_master_cmd.cpp index f24cb3a298d..ced249eb614 100644 --- a/src/mongo/s/commands/cluster_is_master_cmd.cpp +++ b/src/mongo/s/commands/cluster_is_master_cmd.cpp @@ -198,15 +198,16 @@ public: saslMechanismRegistry.advertiseMechanismNamesForUser(opCtx, cmdObj, &result); if (opCtx->isExhaust()) { - LOGV2_DEBUG(23872, 3, "Using exhaust for isMaster protocol"); + LOGV2_DEBUG(23872, 3, "Using exhaust for isMaster or hello protocol"); uassert(51763, - "An isMaster request with exhaust must specify 'maxAwaitTimeMS'", + "An isMaster or hello request with exhaust must specify 'maxAwaitTimeMS'", maxAwaitTimeMSField); invariant(clientTopologyVersion); InExhaustIsMaster::get(opCtx->getClient()->session().get()) - ->setInExhaustIsMaster(true /* inExhaustIsMaster */); + ->setInExhaustIsMaster(true /* inExhaust */, + cmdObj.firstElementFieldNameStringData()); if (clientTopologyVersion->getProcessId() == currentMongosTopologyVersion.getProcessId() && |