fix removing failed quorum parts at startup (tryGetChilden actually returns error code, not success flag)

This commit is contained in:
Alexey Zatelepin 2018-05-07 23:29:13 +03:00
parent c7d2732b80
commit 6047db7ea2

View File

@ -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)