summaryrefslogtreecommitdiff
path: root/src/mongo/executor/network_interface_asio_auth.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/executor/network_interface_asio_auth.cpp')
-rw-r--r--src/mongo/executor/network_interface_asio_auth.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/executor/network_interface_asio_auth.cpp b/src/mongo/executor/network_interface_asio_auth.cpp
index 69fb2c0bc10..d2e341007e6 100644
--- a/src/mongo/executor/network_interface_asio_auth.cpp
+++ b/src/mongo/executor/network_interface_asio_auth.cpp
@@ -64,7 +64,9 @@ void NetworkInterfaceASIO::_runIsMaster(AsyncOp* op) {
BSONObjBuilder bob;
bob.append("isMaster", 1);
bob.append("hangUpOnStepDown", false);
- ClientMetadata::serialize(_options.instanceName, mongo::versionString, &bob);
+
+ const auto versionString = VersionInfoInterface::instance().version();
+ ClientMetadata::serialize(_options.instanceName, versionString, &bob);
if (Command::testCommandsEnabled) {
// Only include the host:port of this process in the isMaster command request if test