ZooKeeper: fixed chroot [#CLICKHOUSE-2]

This commit is contained in:
Alexey Milovidov 2018-04-02 21:59:18 +03:00
parent a5f05dc71e
commit 6364c49ad8

View File

@ -737,7 +737,10 @@ void addRootPath(String & path, const String & root_path)
if (root_path.empty())
return;
path = root_path + path;
if (path.size() == 1) /// "/"
path = root_path;
else
path = root_path + path;
}
void removeRootPath(String & path, const String & root_path)