mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-19 14:11:58 +00:00
fix
This commit is contained in:
parent
7862990721
commit
aba4a00a17
@ -104,12 +104,15 @@ bool ReplicatedMergeTreeQueue::isGoingToBeDropped(const MergeTreePartInfo & part
|
|||||||
bool ReplicatedMergeTreeQueue::isGoingToBeDroppedImpl(const MergeTreePartInfo & part_info, MergeTreePartInfo * out_drop_range_info) const
|
bool ReplicatedMergeTreeQueue::isGoingToBeDroppedImpl(const MergeTreePartInfo & part_info, MergeTreePartInfo * out_drop_range_info) const
|
||||||
{
|
{
|
||||||
String covering_virtual = virtual_parts.getContainingPart(part_info);
|
String covering_virtual = virtual_parts.getContainingPart(part_info);
|
||||||
auto covering_virtual_info = MergeTreePartInfo::fromPartName(covering_virtual, format_version);
|
if (!covering_virtual.empty())
|
||||||
if (covering_virtual_info.isFakeDropRangePart())
|
|
||||||
{
|
{
|
||||||
if (out_drop_range_info)
|
auto covering_virtual_info = MergeTreePartInfo::fromPartName(covering_virtual, format_version);
|
||||||
*out_drop_range_info = covering_virtual_info;
|
if (covering_virtual_info.isFakeDropRangePart())
|
||||||
return true;
|
{
|
||||||
|
if (out_drop_range_info)
|
||||||
|
*out_drop_range_info = covering_virtual_info;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return drop_parts.hasDropPart(part_info, out_drop_range_info);
|
return drop_parts.hasDropPart(part_info, out_drop_range_info);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user