mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-04 13:32:13 +00:00
Merge pull request #35771 from bigo-sg/fix-filebuffer-pos
fix filebuffer pos in RemoteReadBuffer
This commit is contained in:
commit
bb26903675
@ -94,6 +94,8 @@ bool RemoteReadBuffer::nextImpl()
|
|||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//file_buffer::pos should increase correspondingly when RemoteReadBuffer is consumed, otherwise start_offset will be incorrect.
|
||||||
|
local_file_holder->file_buffer->position() = local_file_holder->file_buffer->buffer().begin() + BufferBase::offset();
|
||||||
auto start_offset = local_file_holder->file_buffer->getPosition();
|
auto start_offset = local_file_holder->file_buffer->getPosition();
|
||||||
auto end_offset = start_offset + local_file_holder->file_buffer->internalBuffer().size();
|
auto end_offset = start_offset + local_file_holder->file_buffer->internalBuffer().size();
|
||||||
local_file_holder->file_cache_controller->value().waitMoreData(start_offset, end_offset);
|
local_file_holder->file_cache_controller->value().waitMoreData(start_offset, end_offset);
|
||||||
|
Loading…
Reference in New Issue
Block a user