diff options
Diffstat (limited to 'src/mongo/util/fail_point_registry.h')
-rw-r--r-- | src/mongo/util/fail_point_registry.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/util/fail_point_registry.h b/src/mongo/util/fail_point_registry.h index 7446db95eb1..7a77b47faba 100644 --- a/src/mongo/util/fail_point_registry.h +++ b/src/mongo/util/fail_point_registry.h @@ -53,12 +53,12 @@ public: * 51006 - if the given name already exists in this registry. * CannotMutateObject - if this registry is already frozen. */ - Status addFailPoint(const std::string& name, FailPoint* failPoint); + Status add(const std::string& name, FailPoint* failPoint); /** - * @return the fail point object registered. Returns NULL if it was not registered. + * @return the fail point object registered, or nullptr if it was not registered. */ - FailPoint* getFailPoint(const std::string& name) const; + FailPoint* find(const std::string& name) const; /** * Freezes this registry from being modified. |