mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
Accept paths without ancestors
This commit is contained in:
parent
496aaf58c8
commit
ed4c560e33
@ -357,6 +357,8 @@ void ZooKeeper::createAncestors(const std::string & path)
|
||||
std::vector<std::string> pending_nodes;
|
||||
|
||||
size_t last_pos = path.rfind('/');
|
||||
if (last_pos == std::string::npos || last_pos == 0)
|
||||
return;
|
||||
std::string current_node = path.substr(0, last_pos);
|
||||
|
||||
while (true)
|
||||
|
Loading…
Reference in New Issue
Block a user