mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 00:52:02 +00:00
fix REPLACE_RANGE entry removal
This commit is contained in:
parent
4913b18532
commit
7e6963bb39
@ -891,6 +891,10 @@ bool ReplicatedMergeTreeQueue::checkReplaceRangeCanBeRemoved(const MergeTreePart
|
||||
if (entry_ptr->replace_range_entry == current.replace_range_entry) /// same partition, don't want to drop ourselves
|
||||
return false;
|
||||
|
||||
|
||||
if (!part_info.contains(MergeTreePartInfo::fromPartName(entry_ptr->replace_range_entry->drop_range_part_name, format_version)))
|
||||
return false;
|
||||
|
||||
size_t number_of_covered_parts = 0;
|
||||
for (const String & new_part_name : entry_ptr->replace_range_entry->new_part_names)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user