mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 08:02:02 +00:00
Merge pull request #49458 from ClickHouse/tavplubix-patch-6
Follow-up to #48792
This commit is contained in:
commit
36f8fcdfaf
@ -551,11 +551,11 @@ void StorageMergeTree::waitForMutation(Int64 version, const String & mutation_id
|
||||
{
|
||||
LOG_INFO(log, "Waiting mutation: {}", mutation_id);
|
||||
{
|
||||
auto check = [version, this]()
|
||||
auto check = [version, wait_for_another_mutation, this]()
|
||||
{
|
||||
if (shutdown_called)
|
||||
return true;
|
||||
auto mutation_status = getIncompleteMutationsStatus(version);
|
||||
auto mutation_status = getIncompleteMutationsStatus(version, nullptr, wait_for_another_mutation);
|
||||
return !mutation_status || mutation_status->is_done || !mutation_status->latest_fail_reason.empty();
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user