DB: fixed error [#CONV-2546].

This commit is contained in:
Alexey Milovidov 2011-06-27 19:34:03 +00:00
parent fa8fe600f1
commit 40c8f1e85e
2 changed files with 6 additions and 0 deletions

View File

@ -26,6 +26,9 @@ private:
void nextImpl()
{
if (!offset())
return;
size_t uncompressed_size = offset();
compressed_buffer.resize(uncompressed_size + QUICKLZ_ADDITIONAL_SPACE);

View File

@ -20,6 +20,9 @@ private:
void nextImpl()
{
if (!offset())
return;
ostr.write(working_buffer.begin(), offset());
ostr.flush();