From f83b28a1c1d025f0858dc5e05eab1acc13946620 Mon Sep 17 00:00:00 2001 From: Vladimir Chebotarev Date: Fri, 29 Nov 2019 10:21:44 +0300 Subject: [PATCH] Fixed a typo in `MergeTreeData::selectMoveDestination()`. --- dbms/src/Storages/MergeTree/MergeTreeData.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbms/src/Storages/MergeTree/MergeTreeData.cpp b/dbms/src/Storages/MergeTree/MergeTreeData.cpp index f8998823a05..a05910e313c 100644 --- a/dbms/src/Storages/MergeTree/MergeTreeData.cpp +++ b/dbms/src/Storages/MergeTree/MergeTreeData.cpp @@ -3232,7 +3232,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.max <= time_of_move - && max_max_ttl >= ttl_info_it->second.max) + && max_max_ttl <= ttl_info_it->second.max) { result = &ttl_entry; max_max_ttl = ttl_info_it->second.max;