MONGO_GENERAL_STARTUP_OPTIONS_REGISTER(MongodOptions)(InitializerContext* context) { return addMongodOptions(&moe::startupOptions); }
warning() << "32-bit servers don't have journaling enabled by default. " << "Please use --journal if you want durability." << endl; log() << endl; } return Status::OK(); } MONGO_INITIALIZER_GENERAL(ParseStartupConfiguration, ("GlobalLogManager", "CreateAuthorizationManager" // Requried to call getGlobalAuthorizationManager(). ), ("default", "completedStartupConfig"))(InitializerContext* context) { serverOptions = moe::OptionSection("Allowed options"); Status ret = addMongodOptions(&serverOptions); if (!ret.isOK()) { return ret; } moe::OptionsParser parser; ret = parser.run(serverOptions, context->args(), context->env(), &serverParsedOptions); if (!ret.isOK()) { std::cerr << "Error parsing command line: " << ret.toString() << std::endl; std::cerr << "use --help for help" << std::endl; ::_exit(EXIT_BADOPTIONS); } ret = handlePreValidationMongodOptions(serverParsedOptions, context->args()); if (!ret.isOK()) { return ret;