summaryrefslogtreecommitdiff
path: root/src/mongo/client/sdam/topology_description.cpp
diff options
context:
space:
mode:
authorCheahuychou Mao <cheahuychou.mao@mongodb.com>2020-04-13 10:54:03 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-04-20 16:20:24 +0000
commite84cf820af0e835b822f6599794ce8f4568c56b8 (patch)
tree22bc1b57cb6348005b0454e972219e78b9f3ddef /src/mongo/client/sdam/topology_description.cpp
parentcd5543391366d5344aeea2fc0f3a3a319728bd9b (diff)
downloadmongo-e84cf820af0e835b822f6599794ce8f4568c56b8.tar.gz
SERVER-47560 Include "internalClient" field in ReplicaSetMonitor isMaster requests
Diffstat (limited to 'src/mongo/client/sdam/topology_description.cpp')
-rw-r--r--src/mongo/client/sdam/topology_description.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/client/sdam/topology_description.cpp b/src/mongo/client/sdam/topology_description.cpp
index 610fd215670..cd89535e1bc 100644
--- a/src/mongo/client/sdam/topology_description.cpp
+++ b/src/mongo/client/sdam/topology_description.cpp
@@ -32,8 +32,11 @@
#include "mongo/client/sdam/server_description.h"
#include "mongo/db/wire_version.h"
#include "mongo/logv2/log.h"
+#include "mongo/util/fail_point.h"
namespace mongo::sdam {
+MONGO_FAIL_POINT_DEFINE(topologyDescriptionInstallServerDescription);
+
////////////////////////
// TopologyDescription
////////////////////////
@@ -141,6 +144,9 @@ boost::optional<ServerDescriptionPtr> TopologyDescription::installServerDescript
checkWireCompatibilityVersions();
calculateLogicalSessionTimeout();
+
+ topologyDescriptionInstallServerDescription.shouldFail();
+
return previousDescription;
}