mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-18 04:12:19 +00:00
Merge pull request #28310 from azat/intersecting-parts
Fix intersecting parts due to new part had been replaced with an empty part
This commit is contained in:
commit
0708d51ad1
@ -192,7 +192,7 @@ void ReplicatedMergeTreePartCheckThread::searchForMissingPartAndFetchIfPossible(
|
|||||||
if (missing_part_search_result == MissingPartSearchResult::LostForever)
|
if (missing_part_search_result == MissingPartSearchResult::LostForever)
|
||||||
{
|
{
|
||||||
auto lost_part_info = MergeTreePartInfo::fromPartName(part_name, storage.format_version);
|
auto lost_part_info = MergeTreePartInfo::fromPartName(part_name, storage.format_version);
|
||||||
if (lost_part_info.level != 0)
|
if (lost_part_info.level != 0 || lost_part_info.mutation != 0)
|
||||||
{
|
{
|
||||||
Strings source_parts;
|
Strings source_parts;
|
||||||
bool part_in_queue = storage.queue.checkPartInQueueAndGetSourceParts(part_name, source_parts);
|
bool part_in_queue = storage.queue.checkPartInQueueAndGetSourceParts(part_name, source_parts);
|
||||||
|
Loading…
Reference in New Issue
Block a user