mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 00:30:49 +00:00
fix removing failed quorum parts at startup (tryGetChilden actually returns error code, not success flag)
This commit is contained in:
parent
c7d2732b80
commit
6047db7ea2
@ -245,7 +245,7 @@ void ReplicatedMergeTreeRestartingThread::removeFailedQuorumParts()
|
||||
auto zookeeper = storage.getZooKeeper();
|
||||
|
||||
Strings failed_parts;
|
||||
if (!zookeeper->tryGetChildren(storage.zookeeper_path + "/quorum/failed_parts", failed_parts))
|
||||
if (zookeeper->tryGetChildren(storage.zookeeper_path + "/quorum/failed_parts", failed_parts) != ZooKeeperImpl::ZooKeeper::ZOK)
|
||||
return;
|
||||
|
||||
for (auto part_name : failed_parts)
|
||||
|
Loading…
Reference in New Issue
Block a user