0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

SERVER-38503 Empty networkMessageCompressors is an error

This commit is contained in:
Andrew Morrow 2019-02-28 12:43:06 -05:00
parent df7c2a4a8c
commit 2c0bebbfe5
4 changed files with 2 additions and 7 deletions

View File

@ -39,6 +39,5 @@
runTest("snappy", ["snappy"]);
runTest("disabled", undefined);
runTest("", undefined);
}());

View File

@ -152,10 +152,8 @@ Status storeMongoShellOptions(const moe::Environment& params,
}
if (params.count("net.compression.compressors")) {
auto compressors = params["net.compression.compressors"].as<string>();
if (compressors != "disabled") {
shellGlobalParams.networkMessageCompressors = std::move(compressors);
}
shellGlobalParams.networkMessageCompressors =
params["net.compression.compressors"].as<string>();
}
if (params.count("nodb")) {

View File

@ -35,6 +35,5 @@ configs:
source: [ cli, ini, yaml ]
arg_vartype: String
short_name: networkMessageCompressors
implicit: disabled
default: disabled
hidden: true

View File

@ -35,5 +35,4 @@ configs:
source: [ cli, ini, yaml ]
arg_vartype: String
short_name: networkMessageCompressors
implicit: disabled
default: 'snappy,zstd,zlib'