diff --git a/jstests/noPassthrough/compression_options.js b/jstests/noPassthrough/compression_options.js index 0a22bc1e1ba..c6f4ccadc68 100644 --- a/jstests/noPassthrough/compression_options.js +++ b/jstests/noPassthrough/compression_options.js @@ -39,6 +39,5 @@ runTest("snappy", ["snappy"]); runTest("disabled", undefined); - runTest("", undefined); }()); diff --git a/src/mongo/shell/shell_options.cpp b/src/mongo/shell/shell_options.cpp index 61820b12325..857a6003ac1 100644 --- a/src/mongo/shell/shell_options.cpp +++ b/src/mongo/shell/shell_options.cpp @@ -152,10 +152,8 @@ Status storeMongoShellOptions(const moe::Environment& params, } if (params.count("net.compression.compressors")) { - auto compressors = params["net.compression.compressors"].as(); - if (compressors != "disabled") { - shellGlobalParams.networkMessageCompressors = std::move(compressors); - } + shellGlobalParams.networkMessageCompressors = + params["net.compression.compressors"].as(); } if (params.count("nodb")) { diff --git a/src/mongo/transport/message_compressor_options_client.idl b/src/mongo/transport/message_compressor_options_client.idl index 6c824a00637..f575716630b 100644 --- a/src/mongo/transport/message_compressor_options_client.idl +++ b/src/mongo/transport/message_compressor_options_client.idl @@ -35,6 +35,5 @@ configs: source: [ cli, ini, yaml ] arg_vartype: String short_name: networkMessageCompressors - implicit: disabled default: disabled hidden: true diff --git a/src/mongo/transport/message_compressor_options_server.idl b/src/mongo/transport/message_compressor_options_server.idl index 0e712fbe6c2..9df1cd34343 100644 --- a/src/mongo/transport/message_compressor_options_server.idl +++ b/src/mongo/transport/message_compressor_options_server.idl @@ -35,5 +35,4 @@ configs: source: [ cli, ini, yaml ] arg_vartype: String short_name: networkMessageCompressors - implicit: disabled default: 'snappy,zstd,zlib'