mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-28 10:31:57 +00:00
revert the performance bug fix
This commit is contained in:
parent
c5a42a6948
commit
915092515c
@ -63,6 +63,10 @@ TTLBlockInputStream::TTLBlockInputStream(
|
||||
|
||||
Block TTLBlockInputStream::readImpl()
|
||||
{
|
||||
Block block = children.at(0)->read();
|
||||
if (!block)
|
||||
return block;
|
||||
|
||||
/// Skip all data if table ttl is expired for part
|
||||
if (storage.hasTableTTL() && old_ttl_infos.table_ttl.max <= current_time)
|
||||
{
|
||||
@ -70,10 +74,6 @@ Block TTLBlockInputStream::readImpl()
|
||||
return {};
|
||||
}
|
||||
|
||||
Block block = children.at(0)->read();
|
||||
if (!block)
|
||||
return block;
|
||||
|
||||
if (storage.hasTableTTL() && old_ttl_infos.table_ttl.min <= current_time)
|
||||
removeRowsWithExpiredTableTTL(block);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user