summaryrefslogtreecommitdiff
path: root/src/mongo/tools
diff options
context:
space:
mode:
authorBilly Donahue <billy.donahue@mongodb.com>2019-04-30 15:46:10 -0400
committerBilly Donahue <billy.donahue@mongodb.com>2019-05-16 16:38:58 -0400
commit8c4f95e45b8cf32c61f73bc4e2dd3beaa97e190c (patch)
tree7031f6d306c4c6adfac00c47cd925b729c324d5f /src/mongo/tools
parent39413ef58dd1f667728b67c86e1bf09146952242 (diff)
downloadmongo-8c4f95e45b8cf32c61f73bc4e2dd3beaa97e190c.tar.gz
SERVER-40811 reduce GlobalInitializerRegisterer constructors
Diffstat (limited to 'src/mongo/tools')
-rw-r--r--src/mongo/tools/mongoebench_options_init.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mongo/tools/mongoebench_options_init.cpp b/src/mongo/tools/mongoebench_options_init.cpp
index 3a661e56b91..4ed8f4d75c5 100644
--- a/src/mongo/tools/mongoebench_options_init.cpp
+++ b/src/mongo/tools/mongoebench_options_init.cpp
@@ -42,14 +42,15 @@ MONGO_GENERAL_STARTUP_OPTIONS_REGISTER(MongoeBenchOptions)(InitializerContext* c
GlobalInitializerRegisterer mongoeBenchOptionsStore(
"MongoeBenchOptions_Store",
- {"BeginStartupOptionStorage", "EmbeddedOptions_Store"},
- {"EndStartupOptionStorage"},
[](InitializerContext* context) {
if (!handlePreValidationMongoeBenchOptions(moe::startupOptionsParsed)) {
quickExit(EXIT_SUCCESS);
}
return storeMongoeBenchOptions(moe::startupOptionsParsed, context->args());
- });
+ },
+ DeinitializerFunction(nullptr),
+ {"BeginStartupOptionStorage", "EmbeddedOptions_Store"},
+ {"EndStartupOptionStorage"});
} // namespace
} // namespace mongo