mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-02 12:32:04 +00:00
Minor change
This commit is contained in:
parent
5c3f5cb35a
commit
663dc91c99
@ -139,6 +139,12 @@ off_t AsynchronousReadBufferFromFileDescriptor::seek(off_t offset, int whence)
|
||||
|
||||
void AsynchronousReadBufferFromFileDescriptor::rewind()
|
||||
{
|
||||
if (prefetch_request_id)
|
||||
{
|
||||
reader->wait(*prefetch_request_id, {});
|
||||
prefetch_request_id.reset();
|
||||
}
|
||||
|
||||
/// Clearing the buffer with existing data. New data will be read on subsequent call to 'next'.
|
||||
working_buffer.resize(0);
|
||||
pos = working_buffer.begin();
|
||||
|
Loading…
Reference in New Issue
Block a user