mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-21 01:00:48 +00:00
added chech that root starts with '/' in zookeeper config file [#CLICKHOUSE-3031]
This commit is contained in:
parent
871a7cabc6
commit
1e08db938d
@ -151,7 +151,12 @@ struct ZooKeeperArgs
|
||||
hosts += host;
|
||||
}
|
||||
|
||||
hosts += root;
|
||||
if (!root.empty())
|
||||
{
|
||||
if (root.front() != '/')
|
||||
throw KeeperException(std::string("Root path in config file should starts with '/', but got ") + root);
|
||||
hosts += root;
|
||||
}
|
||||
}
|
||||
|
||||
std::string hosts;
|
||||
|
Loading…
Reference in New Issue
Block a user