diff options
Diffstat (limited to 'src/mongo/s/client/sharding_network_connection_hook.cpp')
| -rw-r--r-- | src/mongo/s/client/sharding_network_connection_hook.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mongo/s/client/sharding_network_connection_hook.cpp b/src/mongo/s/client/sharding_network_connection_hook.cpp index 60368d2eb0f..a6229316eaa 100644 --- a/src/mongo/s/client/sharding_network_connection_hook.cpp +++ b/src/mongo/s/client/sharding_network_connection_hook.cpp @@ -48,12 +48,12 @@ namespace mongo { Status ShardingNetworkConnectionHook::validateHost( const HostAndPort& remoteHost, const BSONObj&, - const executor::RemoteCommandResponse& helloReply) { - return validateHostImpl(remoteHost, helloReply); + const executor::RemoteCommandResponse& isMasterReply) { + return validateHostImpl(remoteHost, isMasterReply); } Status ShardingNetworkConnectionHook::validateHostImpl( - const HostAndPort& remoteHost, const executor::RemoteCommandResponse& helloReply) { + const HostAndPort& remoteHost, const executor::RemoteCommandResponse& isMasterReply) { auto shard = Grid::get(getGlobalServiceContext())->shardRegistry()->getShardForHostNoReload(remoteHost); if (!shard) { @@ -62,11 +62,11 @@ Status ShardingNetworkConnectionHook::validateHostImpl( } long long configServerModeNumber; - auto status = bsonExtractIntegerField(helloReply.data, "configsvr", &configServerModeNumber); + auto status = bsonExtractIntegerField(isMasterReply.data, "configsvr", &configServerModeNumber); switch (status.code()) { case ErrorCodes::OK: { - // The hello response indicates remoteHost is a config server. + // The ismaster response indicates remoteHost is a config server. if (!shard->isConfig()) { return {ErrorCodes::InvalidOptions, str::stream() << "Surprised to discover that " << remoteHost.toString() @@ -75,7 +75,7 @@ Status ShardingNetworkConnectionHook::validateHostImpl( return Status::OK(); } case ErrorCodes::NoSuchKey: { - // The hello response indicates that remoteHost is not a config server, or that + // The ismaster response indicates that remoteHost is not a config server, or that // the config server is running a version prior to the 3.1 development series. if (!shard->isConfig()) { return Status::OK(); @@ -86,7 +86,7 @@ Status ShardingNetworkConnectionHook::validateHostImpl( << " does not believe it is a config server"}; } default: - // The hello response was malformed. + // The ismaster response was malformed. return status; } } |
