revert the performance bug fix

This commit is contained in:
Sergi Vladykin 2019-07-29 11:20:11 +03:00
parent c5a42a6948
commit 915092515c

View File

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