From 044cfe5a2234acdc53087cc8fe3cb4f4b2431e41 Mon Sep 17 00:00:00 2001 From: Kseniia Sumarokova <54203879+kssenii@users.noreply.github.com> Date: Mon, 1 May 2023 22:32:31 +0200 Subject: [PATCH] Remove wrong assertion --- src/Disks/IO/CachedOnDiskReadBufferFromFile.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/Disks/IO/CachedOnDiskReadBufferFromFile.cpp b/src/Disks/IO/CachedOnDiskReadBufferFromFile.cpp index 4114ffcc522..91a04bde0bf 100644 --- a/src/Disks/IO/CachedOnDiskReadBufferFromFile.cpp +++ b/src/Disks/IO/CachedOnDiskReadBufferFromFile.cpp @@ -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;