summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamy Lanka <samy.lanka@mongodb.com>2020-05-05 19:23:25 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-06-01 18:57:50 +0000
commit496547c2552475059ad4b40f0c77223a8375c224 (patch)
treecc813386301bacac1e24e673324c49d3f42309d7
parent495ea4a50219e08ac7a4e1bcd58dc4935f5f0173 (diff)
downloadmongo-496547c2552475059ad4b40f0c77223a8375c224.tar.gz
SERVER-47528 Turn off initialSyncStatus for replSetGetStatus in FTDC
(cherry picked from commit b9a24ae832ee9854c0766f451582305e794e6ed7)
-rw-r--r--src/mongo/db/ftdc/ftdc_mongod.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mongo/db/ftdc/ftdc_mongod.cpp b/src/mongo/db/ftdc/ftdc_mongod.cpp
index 6f7a9dd4a9d..295904e0231 100644
--- a/src/mongo/db/ftdc/ftdc_mongod.cpp
+++ b/src/mongo/db/ftdc/ftdc_mongod.cpp
@@ -47,8 +47,11 @@ void registerMongoDCollectors(FTDCController* controller) {
if (repl::ReplicationCoordinator::get(getGlobalServiceContext())->getReplicationMode() !=
repl::ReplicationCoordinator::modeNone) {
// CmdReplSetGetStatus
- controller->addPeriodicCollector(stdx::make_unique<FTDCSimpleInternalCommandCollector>(
- "replSetGetStatus", "replSetGetStatus", "", BSON("replSetGetStatus" << 1)));
+ controller->addPeriodicCollector(std::make_unique<FTDCSimpleInternalCommandCollector>(
+ "replSetGetStatus",
+ "replSetGetStatus",
+ "",
+ BSON("replSetGetStatus" << 1 << "initialSync" << 0)));
// CollectionStats
controller->addPeriodicCollector(