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,6 +737,9 @@ void addRootPath(String & path, const String & root_path)
if (root_path.empty())
return;
if (path.size() == 1) /// "/"
path = root_path;
else
path = root_path + path;
}