summaryrefslogtreecommitdiff
path: root/src/mongo/db/server_options_server_helpers.h
diff options
context:
space:
mode:
authorSara Golemon <sara.golemon@mongodb.com>2019-02-12 22:14:59 +0000
committerSara Golemon <sara.golemon@mongodb.com>2019-02-14 23:19:17 +0000
commit9d402c82594ad179d2b177027aec462422a4b4fa (patch)
tree87712d5ea54c57701141ed0fe842bffc0081323a /src/mongo/db/server_options_server_helpers.h
parent814b1f8237db9ecb27dd0ffa96f11edd58bac73e (diff)
downloadmongo-9d402c82594ad179d2b177027aec462422a4b4fa.tar.gz
SERVER-39501 Migrate windows options to IDL
Diffstat (limited to 'src/mongo/db/server_options_server_helpers.h')
-rw-r--r--src/mongo/db/server_options_server_helpers.h17
1 files changed, 4 insertions, 13 deletions
diff --git a/src/mongo/db/server_options_server_helpers.h b/src/mongo/db/server_options_server_helpers.h
index 03724ca7230..b6587c5379a 100644
--- a/src/mongo/db/server_options_server_helpers.h
+++ b/src/mongo/db/server_options_server_helpers.h
@@ -35,26 +35,17 @@
namespace mongo {
-namespace optionenvironment {
-class OptionSection;
-class Environment;
-} // namespace optionenvironment
-
-namespace moe = mongo::optionenvironment;
-
/**
* General server options for most standalone applications. Includes addBaseServerOptions.
*/
-Status addGeneralServerOptions(moe::OptionSection* options);
-
-Status addWindowsServerOptions(moe::OptionSection* options);
+Status addGeneralServerOptions(optionenvironment::OptionSection* options);
/**
* Handle custom validation of server options that can not currently be done by using
* Constraints in the Environment. See the "validate" function in the Environment class for
* more details.
*/
-Status validateServerOptions(const moe::Environment& params);
+Status validateServerOptions(const optionenvironment::Environment& params);
/**
* Canonicalize server options for the given environment.
@@ -62,7 +53,7 @@ Status validateServerOptions(const moe::Environment& params);
* For example, the options "objcheck", "noobjcheck", and "net.wireObjectCheck" should all be
* merged into "net.wireObjectCheck".
*/
-Status canonicalizeServerOptions(moe::Environment* params);
+Status canonicalizeServerOptions(optionenvironment::Environment* params);
/**
* Sets up the global server state necessary to be able to store the server options, based on how
@@ -78,7 +69,7 @@ Status setupServerOptions(const std::vector<std::string>& args);
*
* For example, sets the serverGlobalParams.port variable based on the net.port config parameter.
*/
-Status storeServerOptions(const moe::Environment& params);
+Status storeServerOptions(const optionenvironment::Environment& params);
void printCommandLineOpts();