Create StorageReplicatedMergeTree.cpp

This commit is contained in:
tavplubix 2021-10-28 20:25:31 +03:00 committed by GitHub
parent c1310841d9
commit bb4a8e91f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -233,7 +233,7 @@ static String extractZooKeeperPath(const String & path, bool check_starts_with_s
if (path.empty())
throw Exception("ZooKeeper path should not be empty", ErrorCodes::BAD_ARGUMENTS);
if (path[0] == '/')
return path;
return normalizeZooKeeperPath(path, check_starts_with_slash, log);
auto pos = path.find(":/");
if (pos != String::npos && pos < path.find('/'))
{