dbms: use network_compression_method when server writes result [#METR-16391]

This commit is contained in:
Pavel Kartavyy 2015-05-21 14:48:10 +03:00
parent 65d74a6195
commit 391ec6451b

View File

@ -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;