diff options
author | Shaun Verch <shaun.verch@mongodb.com> | 2014-03-27 17:07:40 -0400 |
---|---|---|
committer | Shaun Verch <shaun.verch@mongodb.com> | 2014-03-28 13:46:53 -0400 |
commit | 086c91313022d75c4ba6a8ee4655c61c84ed2590 (patch) | |
tree | 42e883fafeadcdcacdce933eccd8bf782cad762f /src/mongo/s/mongos_options.h | |
parent | e4c7d8dec2ddd172ad788483846dcf8e670581a5 (diff) | |
download | mongo-086c91313022d75c4ba6a8ee4655c61c84ed2590.tar.gz |
SERVER-13379 Canonicalize objcheck and noobjcheck as net.wireObjectCheck
Diffstat (limited to 'src/mongo/s/mongos_options.h')
-rw-r--r-- | src/mongo/s/mongos_options.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/mongo/s/mongos_options.h b/src/mongo/s/mongos_options.h index 78b8fe42e86..30dfd354874 100644 --- a/src/mongo/s/mongos_options.h +++ b/src/mongo/s/mongos_options.h @@ -65,6 +65,21 @@ namespace mongo { bool handlePreValidationMongosOptions(const moe::Environment& params, const std::vector<std::string>& args); + /** + * Handle custom validation of mongos 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 validateMongosOptions(const moe::Environment& params); + + /** + * Canonicalize mongos options for the given environment. + * + * For example, the options "dur", "nodur", "journal", "nojournal", and + * "storage.journaling.enabled" should all be merged into "storage.journaling.enabled". + */ + Status canonicalizeMongosOptions(moe::Environment* params); + Status storeMongosOptions(const moe::Environment& params, const std::vector<std::string>& args); bool isMongos(); |