diff options
author | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2016-07-21 13:16:55 -0400 |
---|---|---|
committer | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2016-07-21 13:16:55 -0400 |
commit | c1042b38c9f6469ddcce2dfdf5dacbff0334cd14 (patch) | |
tree | 1fb45bd9b046a700c986087051abda4eda2903c8 /src/mongo/db/ftdc/ftdc_mongod.cpp | |
parent | 28d04fda95321c84c402338c0849155140dc6cff (diff) | |
download | mongo-c1042b38c9f6469ddcce2dfdf5dacbff0334cd14.tar.gz |
SERVER-24616 Add new getDiagnosticData command
Diffstat (limited to 'src/mongo/db/ftdc/ftdc_mongod.cpp')
-rw-r--r-- | src/mongo/db/ftdc/ftdc_mongod.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mongo/db/ftdc/ftdc_mongod.cpp b/src/mongo/db/ftdc/ftdc_mongod.cpp index 6cbd781de3c..0f0ea5a49df 100644 --- a/src/mongo/db/ftdc/ftdc_mongod.cpp +++ b/src/mongo/db/ftdc/ftdc_mongod.cpp @@ -28,6 +28,8 @@ #include "mongo/platform/basic.h" +#include "mongo/db/ftdc/ftdc_mongod.h" + #include <boost/filesystem.hpp> #include <fstream> #include <memory> @@ -304,6 +306,8 @@ void startFTDC() { // Install periodic collectors // These are collected on the period interval in FTDCConfig. + // NOTE: For each command here, there must be an equivalent privilege check in + // GetDiagnosticDataCommand // CmdServerStatus controller->addPeriodicCollector(stdx::make_unique<FTDCSimpleInternalCommandCollector>( @@ -359,4 +363,8 @@ void stopFTDC() { } } +FTDCController* FTDCController::get(ServiceContext* serviceContext) { + return getFTDCController(serviceContext).get(); +} + } // namespace mongo |