diff options
author | Gregory Noma <gregory.noma@gmail.com> | 2018-06-07 16:30:07 -0400 |
---|---|---|
committer | Gregory Noma <gregory.noma@gmail.com> | 2018-07-05 10:07:46 -0400 |
commit | 96628864b50e4d0377dd920eef647e46c5bc5db8 (patch) | |
tree | 36eb7c7133a1464e28d57bad7cc0e0fce4971ec5 /src/mongo/db/mongod_options.cpp | |
parent | 711c076ef57c0ce3517ab9385c2fd3a005c941b3 (diff) | |
download | mongo-96628864b50e4d0377dd920eef647e46c5bc5db8.tar.gz |
SERVER-29917 Alias server options starting with 'ssl' to parameters starting with 'tls'
Add support for deprecated single names. All 'ssl' options are now
deprecated, superceded by their 'tls' counterparts. Add tests for
these options in server_options_test. Re-add functionality of
disableNonSSLConnectionLogging.
Diffstat (limited to 'src/mongo/db/mongod_options.cpp')
-rw-r--r-- | src/mongo/db/mongod_options.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mongo/db/mongod_options.cpp b/src/mongo/db/mongod_options.cpp index b497c71ed7c..510b62dc354 100644 --- a/src/mongo/db/mongod_options.cpp +++ b/src/mongo/db/mongod_options.cpp @@ -226,7 +226,7 @@ Status addMongodOptions(moe::OptionSection* options) { "", moe::Bool, "disable data file preallocation - will often hurt performance", - "storage.preallocDataFiles") + {"storage.preallocDataFiles"}) .setSources(moe::SourceYAMLConfig); storage_options @@ -234,7 +234,7 @@ Status addMongodOptions(moe::OptionSection* options) { "nssize", moe::Int, ".ns file size (in MB) for new databases", - "storage.nsSize") + {"storage.nsSize"}) .setDefault(moe::Value(16)); storage_options @@ -242,20 +242,20 @@ Status addMongodOptions(moe::OptionSection* options) { "quota", moe::Switch, "limits each database to a certain number of files (8 default)", - "storage.quota.enforced") + {"storage.quota.enforced"}) .incompatibleWith("keyFile"); storage_options.addOptionChaining("storage.mmapv1.quota.maxFilesPerDB", "quotaFiles", moe::Int, "number of files allowed per db, implies --quota", - "storage.quota.maxFilesPerDB"); + {"storage.quota.maxFilesPerDB"}); storage_options.addOptionChaining("storage.mmapv1.smallFiles", "smallfiles", moe::Switch, "use a smaller default file size", - "storage.smallFiles"); + {"storage.smallFiles"}); storage_options .addOptionChaining("storage.syncPeriodSecs", @@ -325,7 +325,7 @@ Status addMongodOptions(moe::OptionSection* options) { "journalOptions", moe::Int, "journal diagnostic options", - "storage.journal.debugFlags") + {"storage.journal.debugFlags"}) .incompatibleWith("durOptions"); storage_options @@ -338,7 +338,7 @@ Status addMongodOptions(moe::OptionSection* options) { "journalCommitInterval", moe::Int, "how often to group/batch commit (ms)", - "storage.mmapv1.journal.commitIntervalMs"); + {"storage.mmapv1.journal.commitIntervalMs"}); // Deprecated option that we don't want people to use for performance reasons storage_options |