diff options
author | Andrew Shuvalov <andrew.shuvalov@mongodb.com> | 2021-04-19 22:34:45 +0000 |
---|---|---|
committer | Andrew Shuvalov <andrew.shuvalov@mongodb.com> | 2021-04-25 16:41:34 +0000 |
commit | 897c3a3e4dffc117ff7e17152642d124fef2b754 (patch) | |
tree | b8f54b4552a92991b55b2e672e522b70294eda03 | |
parent | bb6d97a3dbf83611eb2ffdf7a6e7dcf8c37797ab (diff) | |
download | mongo-897c3a3e4dffc117ff7e17152642d124fef2b754.tar.gz |
SERVER-55456: better RSM logging
-rw-r--r-- | src/mongo/client/replica_set_monitor.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mongo/client/replica_set_monitor.cpp b/src/mongo/client/replica_set_monitor.cpp index df192e48e11..0d6237101c3 100644 --- a/src/mongo/client/replica_set_monitor.cpp +++ b/src/mongo/client/replica_set_monitor.cpp @@ -595,7 +595,8 @@ void Refresher::receivedIsMaster(const HostAndPort& from, // Handle various failure cases if (!reply.ok) { - failedHost(from, {ErrorCodes::CommandFailed, "Failed to execute 'ismaster' command"}, verbose); + failedHost( + from, {ErrorCodes::CommandFailed, "Failed to execute 'ismaster' command"}, verbose); return; } @@ -618,7 +619,8 @@ void Refresher::receivedIsMaster(const HostAndPort& from, {ErrorCodes::InconsistentReplicaSetNames, str::stream() << "Target replica set name " << reply.setName << " does not match the monitored set name " - << _set->name}, verbose); + << _set->name}, + verbose); return; } |