mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
Merging #24404
This commit is contained in:
parent
7a1a184c48
commit
a6d0cda7c1
@ -32,7 +32,7 @@ XML substitution example:
|
|||||||
<profiles from_zk="/profiles-in-zookeeper" />
|
<profiles from_zk="/profiles-in-zookeeper" />
|
||||||
|
|
||||||
<users>
|
<users>
|
||||||
<!-- Replaces `include` element with hte subtree found at `/users-in-zookeeper` ZK path. -->
|
<!-- Replaces `include` element with the subtree found at `/users-in-zookeeper` ZK path. -->
|
||||||
<include from_zk="/users-in-zookeeper" />
|
<include from_zk="/users-in-zookeeper" />
|
||||||
<include from_zk="/other-users-in-zookeeper" />
|
<include from_zk="/other-users-in-zookeeper" />
|
||||||
</users>
|
</users>
|
||||||
|
@ -302,14 +302,14 @@ void ConfigProcessor::doIncludesRecursive(
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (substs_count > 1) /// only one substitution is allowed
|
if (substs_count > 1) /// only one substitution is allowed
|
||||||
throw Poco::Exception("several substitutions attributes set for element <" + node->nodeName() + ">");
|
throw Poco::Exception("More than one substitution attribute is set for element <" + node->nodeName() + ">");
|
||||||
|
|
||||||
if (node->nodeName() == "include")
|
if (node->nodeName() == "include")
|
||||||
{
|
{
|
||||||
if (node->hasChildNodes())
|
if (node->hasChildNodes())
|
||||||
throw Poco::Exception("<include> element must have no children");
|
throw Poco::Exception("<include> element must have no children");
|
||||||
if (substs_count == 0)
|
if (substs_count == 0)
|
||||||
throw Poco::Exception("no substitution attributes set for element <include>, must have one");
|
throw Poco::Exception("No substitution attributes set for element <include>, must have exactly one");
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Replace the original contents, not add to it.
|
/// Replace the original contents, not add to it.
|
||||||
|
Loading…
Reference in New Issue
Block a user