mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-13 18:02:24 +00:00
Wait for done mutation properly
This commit is contained in:
parent
ebaee8e5f6
commit
083d0776ed
@ -615,8 +615,8 @@ void StorageReplicatedMergeTree::waitMutationToFinishOnReplicas(
|
||||
else if (mutation_pointer_value >= mutation_id) /// Maybe we already processed more fresh mutation
|
||||
break; /// (numbers like 0000000000 and 0000000001)
|
||||
|
||||
/// Replica can become inactive, so wait with timeout and recheck it
|
||||
if (wait_event->tryWait(1000))
|
||||
/// Replica can become inactive, so wait with timeout, if nothing happened -> recheck it
|
||||
if (!wait_event->tryWait(1000))
|
||||
continue;
|
||||
|
||||
/// Here we check mutation for errors on local replica. If they happen on this replica
|
||||
|
Loading…
Reference in New Issue
Block a user