diff options
author | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2015-09-17 11:19:57 -0400 |
---|---|---|
committer | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2015-09-18 10:03:13 -0400 |
commit | 3c3859b676dd1a3c0dd0d50ad75e90d1671556e8 (patch) | |
tree | af99c634a9e19b3b3715501aefc34b6209d0d39f /src/mongo/db/ftdc/ftdc_mongod.cpp | |
parent | babad739b9709109a6192a0bc8037b2114f0ca9b (diff) | |
download | mongo-3c3859b676dd1a3c0dd0d50ad75e90d1671556e8.tar.gz |
SERVER-20454: Fatal assertion attempting to set diagnosticDataCollectionPeriodMillis
Diffstat (limited to 'src/mongo/db/ftdc/ftdc_mongod.cpp')
-rw-r--r-- | src/mongo/db/ftdc/ftdc_mongod.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/ftdc/ftdc_mongod.cpp b/src/mongo/db/ftdc/ftdc_mongod.cpp index 7681306cb6c..e5e5ef04c90 100644 --- a/src/mongo/db/ftdc/ftdc_mongod.cpp +++ b/src/mongo/db/ftdc/ftdc_mongod.cpp @@ -54,6 +54,10 @@ namespace { const auto getFTDCController = ServiceContext::declareDecoration<std::unique_ptr<FTDCController>>(); FTDCController* getGlobalFTDCController() { + if (!hasGlobalServiceContext()) { + return nullptr; + } + return getFTDCController(getGlobalServiceContext()).get(); } |