diff options
author | Billy Donahue <billy.donahue@mongodb.com> | 2022-03-10 17:55:40 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-03-10 19:32:28 +0000 |
commit | 7c5ff6c91299f45dff93e07b13c097ec846ce040 (patch) | |
tree | bc879cce28594b06844cb041987760229987649c /src/mongo/util/fail_point.cpp | |
parent | c0652d91db0fb5cc54f12811e100ec8108130112 (diff) | |
download | mongo-7c5ff6c91299f45dff93e07b13c097ec846ce040.tar.gz |
SERVER-63588 ServerParameter: test for redact, remove self-registration
Diffstat (limited to 'src/mongo/util/fail_point.cpp')
-rw-r--r-- | src/mongo/util/fail_point.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mongo/util/fail_point.cpp b/src/mongo/util/fail_point.cpp index 0d6875d4c9a..f60a9591744 100644 --- a/src/mongo/util/fail_point.cpp +++ b/src/mongo/util/fail_point.cpp @@ -338,8 +338,7 @@ void FailPointRegistry::freeze() { void FailPointRegistry::registerAllFailPointsAsServerParameters() { for (const auto& [name, ptr] : _fpMap) { - // Intentionally leaked. - new FailPointServerParameter(name, ServerParameterType::kStartupOnly); + makeServerParameter<FailPointServerParameter>(name, ServerParameterType::kStartupOnly); } } |