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:
parent
df7c2a4a8c
commit
2c0bebbfe5
@ -39,6 +39,5 @@
|
||||
|
||||
runTest("snappy", ["snappy"]);
|
||||
runTest("disabled", undefined);
|
||||
runTest("", undefined);
|
||||
|
||||
}());
|
||||
|
@ -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")) {
|
||||
|
@ -35,6 +35,5 @@ configs:
|
||||
source: [ cli, ini, yaml ]
|
||||
arg_vartype: String
|
||||
short_name: networkMessageCompressors
|
||||
implicit: disabled
|
||||
default: disabled
|
||||
hidden: true
|
||||
|
@ -35,5 +35,4 @@ configs:
|
||||
source: [ cli, ini, yaml ]
|
||||
arg_vartype: String
|
||||
short_name: networkMessageCompressors
|
||||
implicit: disabled
|
||||
default: 'snappy,zstd,zlib'
|
||||
|
Loading…
Reference in New Issue
Block a user