mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 17:41:59 +00:00
Update DatabaseReplicatedWorker.cpp
This commit is contained in:
parent
ef55e4e94d
commit
43fc1af1b3
@ -158,7 +158,7 @@ bool DatabaseReplicatedDDLWorker::waitForReplicaToProcessAllEntries(UInt64 timeo
|
||||
LOG_TRACE(log, "Waiting for worker thread to process all entries before {}, current task is {}", max_log, current_task);
|
||||
bool processed = wait_current_task_change.wait_for(lock, std::chrono::milliseconds(timeout_ms), [&]()
|
||||
{
|
||||
return zookeeper->expired() || current_task == max_log || stop_flag;
|
||||
return zookeeper->expired() || current_task >= max_log || stop_flag;
|
||||
});
|
||||
|
||||
if (!processed)
|
||||
|
Loading…
Reference in New Issue
Block a user