Use finalize() over next() for nested writers

Refs: https://github.com/ClickHouse/ClickHouse/pull/21325#discussion_r585348309
This commit is contained in:
Azat Khuzhin 2021-03-25 23:42:18 +03:00
parent 0675f9403c
commit f1907acbcd
4 changed files with 4 additions and 4 deletions

View File

@ -106,7 +106,7 @@ void BrotliWriteBuffer::finish()
try
{
finishImpl();
out->next();
out->finalize();
finished = true;
}
catch (...)

View File

@ -105,7 +105,7 @@ void LZMADeflatingWriteBuffer::finish()
try
{
finishImpl();
out->next();
out->finalize();
finished = true;
}
catch (...)

View File

@ -107,7 +107,7 @@ void ZlibDeflatingWriteBuffer::finish()
try
{
finishImpl();
out->next();
out->finalize();
finished = true;
}
catch (...)

View File

@ -94,7 +94,7 @@ void ZstdDeflatingWriteBuffer::finish()
try
{
finishImpl();
out->next();
out->finalize();
finished = true;
}
catch (...)