fix after merge

This commit is contained in:
Yakov Olkhovskiy 2023-11-27 21:05:35 +00:00
parent b92030b485
commit 4d40ed851f
2 changed files with 1 additions and 5 deletions

View File

@ -163,7 +163,7 @@ void Lz4DeflatingWriteBuffer::finalizeBefore()
/// Don't write out if no data was ever compressed
if (!compress_empty && first_time)
return;
auto suffix_size = LZ4F_compressBound(0, &kPrefs);
auto sink = SinkToOut(out.get(), tmp_memory, suffix_size);
chassert(sink.getCapacity() >= suffix_size);

View File

@ -23,10 +23,6 @@ public:
size_t alignment = 0,
bool compress_empty_ = true)
: WriteBufferWithOwnMemoryDecorator(std::move(out_), buf_size, existing_memory, alignment)
, in_data(nullptr)
, out_data(nullptr)
, in_capacity(0)
, out_capacity(0)
, compress_empty(compress_empty_)
{
initialize(compression_level);