diff options
Diffstat (limited to 'src/mongo/tools/mongobridge_options.cpp')
-rw-r--r-- | src/mongo/tools/mongobridge_options.cpp | 29 |
1 files changed, 1 insertions, 28 deletions
diff --git a/src/mongo/tools/mongobridge_options.cpp b/src/mongo/tools/mongobridge_options.cpp index 180632b7a9c..862d8b6a1b3 100644 --- a/src/mongo/tools/mongobridge_options.cpp +++ b/src/mongo/tools/mongobridge_options.cpp @@ -17,7 +17,6 @@ #include "mongo/tools/mongobridge_options.h" #include "mongo/base/status.h" -#include "mongo/util/options_parser/startup_option_init.h" #include "mongo/util/options_parser/startup_options.h" namespace mongo { @@ -90,30 +89,4 @@ namespace mongo { return Status::OK(); } - MONGO_GENERAL_STARTUP_OPTIONS_REGISTER(MongoBridgeOptions)(InitializerContext* context) { - return addMongoBridgeOptions(&moe::startupOptions); - } - - MONGO_STARTUP_OPTIONS_VALIDATE(MongoBridgeOptions)(InitializerContext* context) { - if (handlePreValidationMongoBridgeOptions(moe::startupOptionsParsed)) { - ::_exit(EXIT_SUCCESS); - } - Status ret = moe::startupOptionsParsed.validate(); - if (!ret.isOK()) { - return ret; - } - return Status::OK(); - } - - MONGO_STARTUP_OPTIONS_STORE(MongoBridgeOptions)(InitializerContext* context) { - Status ret = storeMongoBridgeOptions(moe::startupOptionsParsed, context->args()); - if (!ret.isOK()) { - std::cerr << ret.toString() << std::endl; - std::cerr << "try '" << context->args()[0] << " --help' for more information" - << std::endl; - ::_exit(EXIT_BADOPTIONS); - } - return Status::OK(); - } -} - +} // namespace mongo |