diff options
author | Shreyas Kalyan <shreyas.kalyan@10gen.com> | 2019-02-07 16:31:21 -0500 |
---|---|---|
committer | Shreyas Kalyan <shreyas.kalyan@10gen.com> | 2019-02-08 10:40:54 -0500 |
commit | 0c26a39cf231efc2379698cd8996564bef855e17 (patch) | |
tree | 491cbea5dde756cf2034e791ff493bf9ad5b3901 /src/mongo/s/mongos_options.cpp | |
parent | 9692e042ac698c0af3c9a541ebc58c0c29ec4190 (diff) | |
download | mongo-0c26a39cf231efc2379698cd8996564bef855e17.tar.gz |
SERVER-39409: Convert configuration options in mongos_options.cpp to IDL
Diffstat (limited to 'src/mongo/s/mongos_options.cpp')
-rw-r--r-- | src/mongo/s/mongos_options.cpp | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/src/mongo/s/mongos_options.cpp b/src/mongo/s/mongos_options.cpp index 4a5b02b8d1e..d900b3e5cc6 100644 --- a/src/mongo/s/mongos_options.cpp +++ b/src/mongo/s/mongos_options.cpp @@ -73,52 +73,12 @@ Status addMongosOptions(moe::OptionSection* options) { } #endif - moe::OptionSection sharding_options("Sharding options"); - - sharding_options.addOptionChaining("sharding.configDB", - "configdb", - moe::String, - "Connection string for communicating with config servers:\n" - "<config replset name>/<host1:port>,<host2:port>,[...]"); - - sharding_options.addOptionChaining( - "replication.localPingThresholdMs", - "localThreshold", - moe::Int, - "ping time (in ms) for a node to be considered local (default 15ms)"); - - sharding_options.addOptionChaining("test", "test", moe::Switch, "just run unit tests") - .setSources(moe::SourceAllLegacy); - - /** Javascript Options - * As a general rule, js enable/disable options are ignored for mongos. - * However, we define and hide these options so that if someone - * were to use these args in a set of options meant for both - * mongos and mongod runs, the mongos won't fail on an unknown argument. - * - * These options have no affect on how the mongos runs. - * Setting either or both to *any* value will provoke a warning message - * and nothing more. - */ - sharding_options - .addOptionChaining("noscripting", "noscripting", moe::Switch, "disable scripting engine") - .hidden() - .setSources(moe::SourceAllLegacy); - - general_options - .addOptionChaining( - "security.javascriptEnabled", "", moe::Bool, "Enable javascript execution") - .hidden() - .setSources(moe::SourceYAMLConfig); - options->addSection(general_options).transitional_ignore(); #if defined(_WIN32) options->addSection(windows_scm_options).transitional_ignore(); #endif - options->addSection(sharding_options).transitional_ignore(); - return Status::OK(); } @@ -177,11 +137,6 @@ Status storeMongosOptions(const moe::Environment& params) { } } - if (params.count("replication.localPingThresholdMs")) { - serverGlobalParams.defaultLocalThresholdMillis = - params["replication.localPingThresholdMs"].as<int>(); - } - if (params.count("noscripting") || params.count("security.javascriptEnabled")) { warning() << "The Javascript enabled/disabled options are not supported for mongos. " "(\"noscripting\" and/or \"security.javascriptEnabled\" are set.)"; |