Fixed move TTL expiration logic.

This commit is contained in:
Vladimir Chebotarev 2019-11-28 22:58:21 +03:00
parent 164360e7ad
commit 15fb64f54b

View File

@ -3734,7 +3734,7 @@ const MergeTreeData::TTLEntry * MergeTreeData::selectMoveDestination(
{
auto ttl_info_it = ttl_infos.moves_ttl.find(ttl_entry.result_column);
if (ttl_info_it != ttl_infos.moves_ttl.end()
&& ttl_info_it->second.min >= minimum_time
&& ttl_info_it->second.min <= minimum_time
&& max_min_ttl <= ttl_info_it->second.min)
{
result = &ttl_entry;