summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/replication_info.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/repl/replication_info.cpp')
-rw-r--r--src/mongo/db/repl/replication_info.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/db/repl/replication_info.cpp b/src/mongo/db/repl/replication_info.cpp
index dc94c010f41..f35799db885 100644
--- a/src/mongo/db/repl/replication_info.cpp
+++ b/src/mongo/db/repl/replication_info.cpp
@@ -73,6 +73,8 @@ MONGO_FAIL_POINT_DEFINE(waitInHello);
// standalones. This failpoint will hang right before doing this sleep when set.
MONGO_FAIL_POINT_DEFINE(hangWaitingForHelloResponseOnStandalone);
+MONGO_FAIL_POINT_DEFINE(appendHelloOkToHelloResponse);
+
using std::list;
using std::string;
using std::stringstream;
@@ -418,6 +420,10 @@ public:
uassertStatusOK(status);
}
+ if (MONGO_unlikely(appendHelloOkToHelloResponse.shouldFail())) {
+ result.append("clientSupportsHello", client->supportsHello());
+ }
+
auto currentTopologyVersion = appendReplicationInfo(
opCtx, &result, 0, useLegacyResponseFields(), clientTopologyVersion, maxAwaitTimeMS);