mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 09:32:06 +00:00
Fixed tests
This commit is contained in:
parent
608d37deed
commit
459d00f999
@ -47,9 +47,9 @@ bool CachedCompressedReadBuffer::nextImpl()
|
||||
|
||||
if (cell->compressed_size)
|
||||
{
|
||||
owned_cell->additional_bytes = codec->getAdditionalSizeAtTheEndOfBuffer();
|
||||
owned_cell->data.resize(size_decompressed + owned_cell->additional_bytes);
|
||||
decompressTo(owned_cell->data.data(), size_decompressed, size_compressed_without_checksum);
|
||||
cell->additional_bytes = codec->getAdditionalSizeAtTheEndOfBuffer();
|
||||
cell->data.resize(size_decompressed + cell->additional_bytes);
|
||||
decompressTo(cell->data.data(), size_decompressed, size_compressed_without_checksum);
|
||||
}
|
||||
|
||||
return cell;
|
||||
|
@ -61,7 +61,8 @@ public:
|
||||
template <typename LoadFunc>
|
||||
MappedPtr getOrSet(const Key & key, LoadFunc && load)
|
||||
{
|
||||
auto result = Base::getOrSet(key, load);
|
||||
auto result = Base::getOrSet(key, std::forward<LoadFunc>(load));
|
||||
|
||||
if (result.second)
|
||||
ProfileEvents::increment(ProfileEvents::UncompressedCacheMisses);
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user