mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-20 06:32:08 +00:00
Sync after reconnect
This commit is contained in:
parent
1ff14aed02
commit
1af9a81297
@ -503,6 +503,8 @@ zkutil::ZooKeeperPtr StorageKeeperMap::getClient() const
|
|||||||
zookeeper_client = getContext()->getZooKeeper();
|
zookeeper_client = getContext()->getZooKeeper();
|
||||||
else
|
else
|
||||||
zookeeper_client = getContext()->getAuxiliaryZooKeeper(zookeeper_name);
|
zookeeper_client = getContext()->getAuxiliaryZooKeeper(zookeeper_name);
|
||||||
|
|
||||||
|
zookeeper_client->sync(rootKeeperPath());
|
||||||
}
|
}
|
||||||
|
|
||||||
return zookeeper_client;
|
return zookeeper_client;
|
||||||
|
Loading…
Reference in New Issue
Block a user