summaryrefslogtreecommitdiff
path: root/src/mongo/util
diff options
context:
space:
mode:
authorMark Benvenuto <mark.benvenuto@mongodb.com>2019-02-04 14:18:01 -0500
committerMark Benvenuto <mark.benvenuto@mongodb.com>2019-02-04 14:18:01 -0500
commitf06d8bc5b4c1e7b167a93d57930ad919ec4760b9 (patch)
treef23755ac8c8b9becd1e21972a20ccb07988e7b0e /src/mongo/util
parent873ff40b0eea3cb48cf223f3a44ad771d25884fd (diff)
downloadmongo-f06d8bc5b4c1e7b167a93d57930ad919ec4760b9.tar.gz
SERVER-39133 Ensure failpoint registry is initialized before option validation
Diffstat (limited to 'src/mongo/util')
-rw-r--r--src/mongo/util/fail_point_service.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/util/fail_point_service.cpp b/src/mongo/util/fail_point_service.cpp
index 753d0015150..cbc0a5b0581 100644
--- a/src/mongo/util/fail_point_service.cpp
+++ b/src/mongo/util/fail_point_service.cpp
@@ -45,7 +45,9 @@ MONGO_FAIL_POINT_DEFINE(dummy); // used by tests in jstests/fail_point
unique_ptr<FailPointRegistry> _fpRegistry(nullptr);
-MONGO_INITIALIZER_WITH_PREREQUISITES(FailPointRegistry, MONGO_NO_PREREQUISITES)
+MONGO_INITIALIZER_GENERAL(FailPointRegistry,
+ MONGO_NO_PREREQUISITES,
+ ("BeginGeneralStartupOptionRegistration"))
(InitializerContext* context) {
_fpRegistry.reset(new FailPointRegistry());
return Status::OK();