summaryrefslogtreecommitdiff
path: root/src/mongo/client/async_client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/client/async_client.cpp')
-rw-r--r--src/mongo/client/async_client.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/client/async_client.cpp b/src/mongo/client/async_client.cpp
index 6b3085efd4d..3fcd468d8d5 100644
--- a/src/mongo/client/async_client.cpp
+++ b/src/mongo/client/async_client.cpp
@@ -98,7 +98,7 @@ BSONObj AsyncDBClient::_buildIsMasterRequest(const std::string& appName,
}
if (hook) {
- return hook->augmentIsMasterRequest(bob.obj());
+ return hook->augmentIsMasterRequest(remote(), bob.obj());
} else {
return bob.obj();
}
@@ -192,6 +192,7 @@ Future<void> AsyncDBClient::authenticateInternal(
#endif
return auth::authenticateInternalClient(clientName,
+ remote(),
mechanismHint,
auth::StepDownBehavior::kKillConnection,
_makeAuthRunCommandHook(),