From af259a2a68a2364b2148e9931d8345d894bb9703 Mon Sep 17 00:00:00 2001 From: alesapin Date: Fri, 16 Sep 2022 11:50:07 +0200 Subject: [PATCH] Update src/Storages/MergeTree/MergeFromLogEntryTask.cpp Co-authored-by: Alexander Tokmakov --- src/Storages/MergeTree/MergeFromLogEntryTask.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Storages/MergeTree/MergeFromLogEntryTask.cpp b/src/Storages/MergeTree/MergeFromLogEntryTask.cpp index fafbf78aaa4..9bae4a840bb 100644 --- a/src/Storages/MergeTree/MergeFromLogEntryTask.cpp +++ b/src/Storages/MergeTree/MergeFromLogEntryTask.cpp @@ -223,7 +223,7 @@ ReplicatedMergeMutateTaskBase::PrepareResult MergeFromLogEntryTask::prepare() .part_log_writer = {} }; } - else if (!storage.findReplicaHavingCoveringPart(entry.new_part_name, true, dummy).empty()) + else if (!storage.findReplicaHavingCoveringPart(entry.new_part_name, /* active */ false, dummy).empty()) { /// Why this if still needed? We can check for part in zookeeper, don't find it and sleep for any amount of time. During this sleep part will be actually committed from other replica /// and exclusive zero copy lock will be released. We will take the lock and execute merge one more time, while it was possible just to download the part from other replica.