summaryrefslogtreecommitdiff
path: root/src/mongo/db/ftdc/ftdc_mongod.cpp
diff options
context:
space:
mode:
authorHenrik Edin <henrik.edin@mongodb.com>2018-02-27 11:28:53 -0500
committerHenrik Edin <henrik.edin@mongodb.com>2018-03-02 09:58:48 -0500
commit7d37a75df3f6035a7afcb51123b88f0e99308fc8 (patch)
tree2f2a0b3f835ca14830208a3f894dd4e04a7e8cd0 /src/mongo/db/ftdc/ftdc_mongod.cpp
parent0b8094a34b9458ad46cf05cf67015d83725934b7 (diff)
downloadmongo-7d37a75df3f6035a7afcb51123b88f0e99308fc8.tar.gz
SERVER-29519 Remove getGlobalReplicationCoordinator. Replace when getting decoration through service context (global if needed).
Diffstat (limited to 'src/mongo/db/ftdc/ftdc_mongod.cpp')
-rw-r--r--src/mongo/db/ftdc/ftdc_mongod.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mongo/db/ftdc/ftdc_mongod.cpp b/src/mongo/db/ftdc/ftdc_mongod.cpp
index 1f53ec345ea..d3c1c703dbd 100644
--- a/src/mongo/db/ftdc/ftdc_mongod.cpp
+++ b/src/mongo/db/ftdc/ftdc_mongod.cpp
@@ -36,7 +36,6 @@
#include "mongo/db/ftdc/controller.h"
#include "mongo/db/ftdc/ftdc_server.h"
#include "mongo/db/repl/replication_coordinator.h"
-#include "mongo/db/repl/replication_coordinator_global.h"
#include "mongo/db/storage/storage_options.h"
namespace mongo {
@@ -44,7 +43,7 @@ namespace mongo {
namespace {
void registerMongoDCollectors(FTDCController* controller) {
// These metrics are only collected if replication is enabled
- if (repl::getGlobalReplicationCoordinator()->getReplicationMode() !=
+ if (repl::ReplicationCoordinator::get(getGlobalServiceContext())->getReplicationMode() !=
repl::ReplicationCoordinator::modeNone) {
// CmdReplSetGetStatus
controller->addPeriodicCollector(stdx::make_unique<FTDCSimpleInternalCommandCollector>(