mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 00:30:49 +00:00
Merge pull request #49723 from DimasKovas/fix_storage_buffer_reschedule
Some unclear change in StorageBuffer::reschedule() for something
This commit is contained in:
commit
4b59d265e1
@ -996,8 +996,11 @@ void StorageBuffer::reschedule()
|
||||
std::unique_lock lock(buffer.tryLock());
|
||||
if (lock.owns_lock())
|
||||
{
|
||||
min_first_write_time = buffer.first_write_time;
|
||||
rows += buffer.data.rows();
|
||||
if (buffer.data)
|
||||
{
|
||||
min_first_write_time = std::min(min_first_write_time, buffer.first_write_time);
|
||||
rows += buffer.data.rows();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user