summaryrefslogtreecommitdiff
path: root/src/mongo/client/server_discovery_monitor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/client/server_discovery_monitor.cpp')
-rw-r--r--src/mongo/client/server_discovery_monitor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/client/server_discovery_monitor.cpp b/src/mongo/client/server_discovery_monitor.cpp
index 27f77214a64..0cd639e76af 100644
--- a/src/mongo/client/server_discovery_monitor.cpp
+++ b/src/mongo/client/server_discovery_monitor.cpp
@@ -239,7 +239,7 @@ StatusWith<TaskExecutor::CallbackHandle> SingleServerDiscoveryMonitor::_schedule
});
BSONObjBuilder bob;
- bob.append("isMaster", 1);
+ bob.append("hello", 1);
bob.append("maxAwaitTimeMS", maxAwaitTimeMS);
bob.append("topologyVersion", _topologyVersion->toBSON());
@@ -299,7 +299,7 @@ StatusWith<TaskExecutor::CallbackHandle> SingleServerDiscoveryMonitor::_schedule
StatusWith<TaskExecutor::CallbackHandle> SingleServerDiscoveryMonitor::_scheduleSingleHello() {
BSONObjBuilder bob;
- bob.append("isMaster", 1);
+ bob.append("hello", 1);
if (auto wireSpec = WireSpec::instance().get(); wireSpec->isInternalClient) {
WireSpec::appendInternalClientWireVersion(wireSpec->outgoing, &bob);
}