| 891 | } |
| 892 | |
| 893 | ConfigProcessor::LoadedConfig ConfigProcessor::loadConfig(bool allow_zk_includes, bool is_config_changed) |
| 894 | { |
| 895 | bool has_zk_includes = false; |
| 896 | XMLDocumentPtr config_xml = processConfig(&has_zk_includes, nullptr, nullptr, is_config_changed); |
| 897 | |
| 898 | if (has_zk_includes && !allow_zk_includes) |
| 899 | throw Poco::Exception("Error while loading config '" + path + "': from_zk includes are not allowed!"); |
| 900 | |
| 901 | ConfigurationPtr configuration(new Poco::Util::XMLConfiguration(config_xml)); |
| 902 | |
| 903 | return LoadedConfig{configuration, has_zk_includes, /* loaded_from_preprocessed = */ false, config_xml, path}; |
| 904 | } |
| 905 | |
| 906 | ConfigProcessor::LoadedConfig ConfigProcessor::loadConfigWithZooKeeperIncludes( |
| 907 | zkutil::ZooKeeperNodeCache * zk_node_cache, |