summaryrefslogtreecommitdiff
path: root/src/mongo/client/connection_pool.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/client/connection_pool.cpp')
-rw-r--r--src/mongo/client/connection_pool.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/client/connection_pool.cpp b/src/mongo/client/connection_pool.cpp
index 068ab4f3581..897c2dc0f13 100644
--- a/src/mongo/client/connection_pool.cpp
+++ b/src/mongo/client/connection_pool.cpp
@@ -176,8 +176,8 @@ ConnectionPool::ConnectionList::iterator ConnectionPool::acquireConnection(
false, // auto reconnect
0, // socket timeout
{}, // MongoURI
- [this, target](const executor::RemoteCommandResponse& isMasterReply) {
- return _hook->validateHost(target, BSONObj(), isMasterReply);
+ [this, target](const executor::RemoteCommandResponse& helloReply) {
+ return _hook->validateHost(target, BSONObj(), helloReply);
}));
} else {
conn.reset(new DBClientConnection());