Update StorageReplicatedMergeTree.cpp

This commit is contained in:
tavplubix 2021-12-02 13:18:02 +03:00 committed by GitHub
parent 2d359a5e79
commit e9489ccd6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3339,7 +3339,7 @@ void StorageReplicatedMergeTree::removePartAndEnqueueFetch(const String & part_n
/// It's quite dangerous, so clone covered parts to detached.
auto broken_part_info = MergeTreePartInfo::fromPartName(part_name, format_version);
auto partition_range = getDataPartsPartitionRange(broken_part_info.partition_id);
auto partition_range = getDataPartsVectorInPartition(MergeTreeDataPartState::Committed, broken_part_info.partition_id);
for (const auto & part : partition_range)
{
if (!broken_part_info.contains(part->info))