Merge pull request #49723 from DimasKovas/fix_storage_buffer_reschedule

Some unclear change in StorageBuffer::reschedule() for something
This commit is contained in:
Alexey Milovidov 2023-08-12 03:28:23 +03:00 committed by GitHub
commit 4b59d265e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();
}
}
}