diff --git a/src/IO/BoundedReadBuffer.cpp b/src/IO/BoundedReadBuffer.cpp index f9b778c94f7..f4467bb2c0c 100644 --- a/src/IO/BoundedReadBuffer.cpp +++ b/src/IO/BoundedReadBuffer.cpp @@ -42,7 +42,7 @@ bool BoundedReadBuffer::nextImpl() SwapHelper swap(*this, *impl); result = impl->next(); } - + chassert(file_offset_of_buffer_end + available() == impl->getFileOffsetOfBufferEnd()); if (result && read_until_position) { size_t remaining_size_to_read = *read_until_position - file_offset_of_buffer_end; @@ -58,7 +58,6 @@ bool BoundedReadBuffer::nextImpl() } } file_offset_of_buffer_end += available(); - chassert(file_offset_of_buffer_end == impl->getFileOffsetOfBufferEnd()); return result; }