mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-21 09:10:48 +00:00
dbms: use network_compression_method when server writes result [#METR-16391]
This commit is contained in:
parent
65d74a6195
commit
391ec6451b
@ -617,7 +617,7 @@ void TCPHandler::initBlockOutput()
|
||||
if (!state.block_out)
|
||||
{
|
||||
if (state.compression == Protocol::Compression::Enable)
|
||||
state.maybe_compressed_out = new CompressedWriteBuffer(*out);
|
||||
state.maybe_compressed_out = new CompressedWriteBuffer(*out, query_context.getSettings().network_compression_method);
|
||||
else
|
||||
state.maybe_compressed_out = out;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user