Skip to content

Commit

Permalink
Fix tiny thing in Replicated database (ClickHouse#53496)
Browse files Browse the repository at this point in the history
* Fix tiny thing in Replicated database

* empty commit

---------

Co-authored-by: Alexander Tokmakov <[email protected]>
  • Loading branch information
evillique and tavplubix authored Aug 18, 2023
1 parent 4c3cb27 commit 4c60659
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Databases/DatabaseReplicatedWorker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ String DatabaseReplicatedDDLWorker::enqueueQueryImpl(const ZooKeeperPtr & zookee
zkutil::KeeperMultiException::check(code, ops, res);
}

if (iters == 0)
if (counter_path.empty())
throw Exception(ErrorCodes::UNFINISHED,
"Cannot enqueue query, because some replica are trying to enqueue another query. "
"It may happen on high queries rate or, in rare cases, after connection loss. Client should retry.");
Expand Down

0 comments on commit 4c60659

Please sign in to comment.