mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
fix eof
This commit is contained in:
parent
bc5b6af8fa
commit
239b198a12
@ -47,6 +47,8 @@ ZlibInflatingReadBuffer::~ZlibInflatingReadBuffer()
|
||||
}
|
||||
|
||||
bool ZlibInflatingReadBuffer::nextImpl()
|
||||
{
|
||||
do
|
||||
{
|
||||
if (eof)
|
||||
return false;
|
||||
@ -82,6 +84,8 @@ bool ZlibInflatingReadBuffer::nextImpl()
|
||||
}
|
||||
if (rc != Z_OK)
|
||||
throw Exception(std::string("inflate failed: ") + zError(rc), ErrorCodes::ZLIB_INFLATE_FAILED);
|
||||
}
|
||||
while (working_buffer.empty());
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user