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/db/server_options_helpers.h | |
parent | e4c7d8dec2ddd172ad788483846dcf8e670581a5 (diff) | |
download | mongo-086c91313022d75c4ba6a8ee4655c61c84ed2590.tar.gz |
SERVER-13379 Canonicalize objcheck and noobjcheck as net.wireObjectCheck
Diffstat (limited to 'src/mongo/db/server_options_helpers.h')
-rw-r--r-- | src/mongo/db/server_options_helpers.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/mongo/db/server_options_helpers.h b/src/mongo/db/server_options_helpers.h index 85d09de0e32..b1b36b6a5b1 100644 --- a/src/mongo/db/server_options_helpers.h +++ b/src/mongo/db/server_options_helpers.h @@ -47,6 +47,21 @@ namespace mongo { Status addSSLServerOptions(moe::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); + + /** + * Canonicalize server options for the given environment. + * + * For example, the options "objcheck", "noobjcheck", and "net.wireObjectCheck" should all be + * merged into "net.wireObjectCheck". + */ + Status canonicalizeServerOptions(moe::Environment* params); + Status storeServerOptions(const moe::Environment& params, const std::vector<std::string>& args); |