summaryrefslogtreecommitdiff
path: root/src/mongo/base/global_initializer_registerer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/base/global_initializer_registerer.cpp')
-rw-r--r--src/mongo/base/global_initializer_registerer.cpp28
1 files changed, 13 insertions, 15 deletions
diff --git a/src/mongo/base/global_initializer_registerer.cpp b/src/mongo/base/global_initializer_registerer.cpp
index 4e23b0e70ee..f9fb925ef44 100644
--- a/src/mongo/base/global_initializer_registerer.cpp
+++ b/src/mongo/base/global_initializer_registerer.cpp
@@ -35,21 +35,19 @@
namespace mongo {
- GlobalInitializerRegisterer::GlobalInitializerRegisterer(
- const std::string& name,
- const InitializerFunction& fn,
- const std::vector<std::string>& prerequisites,
- const std::vector<std::string>& dependents) {
-
- Status status = getGlobalInitializer().getInitializerDependencyGraph().addInitializer(
- name, fn, prerequisites, dependents);
-
-
- if (Status::OK() != status) {
- std::cerr << "Attempt to add global initializer failed, status: "
- << status << std::endl;
- ::abort();
- }
+GlobalInitializerRegisterer::GlobalInitializerRegisterer(
+ const std::string& name,
+ const InitializerFunction& fn,
+ const std::vector<std::string>& prerequisites,
+ const std::vector<std::string>& dependents) {
+ Status status = getGlobalInitializer().getInitializerDependencyGraph().addInitializer(
+ name, fn, prerequisites, dependents);
+
+
+ if (Status::OK() != status) {
+ std::cerr << "Attempt to add global initializer failed, status: " << status << std::endl;
+ ::abort();
}
+}
} // namespace mongo