From bf03dfc661a336875b19c440a917ae120ad95d19 Mon Sep 17 00:00:00 2001 From: Antonio Andelic Date: Tue, 30 Aug 2022 13:41:13 +0000 Subject: [PATCH] Fix create --- src/Storages/StorageKeeperMap.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Storages/StorageKeeperMap.cpp b/src/Storages/StorageKeeperMap.cpp index 362f4bfc152..e6090ccc605 100644 --- a/src/Storages/StorageKeeperMap.cpp +++ b/src/Storages/StorageKeeperMap.cpp @@ -289,7 +289,10 @@ StorageKeeperMap::StorageKeeperMap( auto code = client->tryCreate(table_path, "", zkutil::CreateMode::Persistent); if (code == Coordination::Error::ZOK) + { + table_is_valid = true; return; + } if (code == Coordination::Error::ZNONODE) LOG_INFO(log, "Metadata nodes were deleted in background, will retry");