Merge pull request #49376 from ClickHouse/kssenii-patch-7

Remove wrong assertion in cache
This commit is contained in:
Kseniia Sumarokova 2023-05-02 11:47:11 +02:00 committed by GitHub
commit 1590ba3326
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -493,11 +493,6 @@ bool CachedOnDiskReadBufferFromFile::completeFileSegmentAndGetNext()
chassert(file_offset_of_buffer_end > completed_range.right);
if (read_type == ReadType::CACHED)
{
chassert(current_file_segment->getDownloadedSize(true) == current_file_segment->range().size());
}
file_segments->popFront();
if (file_segments->empty())
return false;