diff options
author | Samy Lanka <samy.lanka@mongodb.com> | 2020-05-05 19:23:25 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-06-01 18:57:50 +0000 |
commit | 496547c2552475059ad4b40f0c77223a8375c224 (patch) | |
tree | cc813386301bacac1e24e673324c49d3f42309d7 | |
parent | 495ea4a50219e08ac7a4e1bcd58dc4935f5f0173 (diff) | |
download | mongo-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.cpp | 7 |
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( |