diff options
Diffstat (limited to 'src/mongo/util/fail_point.cpp')
-rw-r--r-- | src/mongo/util/fail_point.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/util/fail_point.cpp b/src/mongo/util/fail_point.cpp index e467ff2d9fb..34a5cb7454e 100644 --- a/src/mongo/util/fail_point.cpp +++ b/src/mongo/util/fail_point.cpp @@ -371,6 +371,12 @@ void FailPointRegistry::registerAllFailPointsAsServerParameters() { } } +void FailPointRegistry::disableAllFailpoints() { + for (auto& [_, fp] : _fpMap) { + fp->setMode(FailPoint::Mode::off); + } +} + static constexpr auto kFailPointServerParameterPrefix = "failpoint."_sd; FailPointServerParameter::FailPointServerParameter(StringData name, ServerParameterType spt) |