From 1af9a81297e224ddad324d908669a60f375df044 Mon Sep 17 00:00:00 2001 From: Antonio Andelic Date: Wed, 31 Aug 2022 08:29:40 +0000 Subject: [PATCH] Sync after reconnect --- src/Storages/StorageKeeperMap.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Storages/StorageKeeperMap.cpp b/src/Storages/StorageKeeperMap.cpp index 66b7c1731f1..157b35ce995 100644 --- a/src/Storages/StorageKeeperMap.cpp +++ b/src/Storages/StorageKeeperMap.cpp @@ -503,6 +503,8 @@ zkutil::ZooKeeperPtr StorageKeeperMap::getClient() const zookeeper_client = getContext()->getZooKeeper(); else zookeeper_client = getContext()->getAuxiliaryZooKeeper(zookeeper_name); + + zookeeper_client->sync(rootKeeperPath()); } return zookeeper_client;