mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-14 03:25:15 +00:00
Update CompressedWriteBuffer.cpp
This commit is contained in:
parent
f334cd371f
commit
fd28c19c1c
@ -33,7 +33,7 @@ void CompressedWriteBuffer::nextImpl()
|
||||
compressed_size = codec->compress(working_buffer.begin(), decompressed_size, out_compressed_ptr);
|
||||
|
||||
CityHash_v1_0_2::uint128 checksum = CityHash_v1_0_2::CityHash128(out_compressed_ptr, compressed_size);
|
||||
memcpy(out_checksum_ptr, &checksum, CHECKSUM_SIZE);
|
||||
memcpy(out_checksum_ptr, reinterpret_cast<const char *>(&checksum), CHECKSUM_SIZE);
|
||||
out.position() += CHECKSUM_SIZE + compressed_size;
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user