MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / loadConfig

Method loadConfig

src/Common/Config/ConfigProcessor.cpp:893–904  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

891}
892
893ConfigProcessor::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
906ConfigProcessor::LoadedConfig ConfigProcessor::loadConfigWithZooKeeperIncludes(
907 zkutil::ZooKeeperNodeCache * zk_node_cache,

Callers 13

initializeMethod · 0.45
mainMethod · 0.45
StorageRunnerMethod · 0.45
RunnerMethod · 0.45
initializeMethod · 0.45
initializeMethod · 0.45
setupUsersMethod · 0.45
connectToKeeperMethod · 0.45
SetUpMethod · 0.45
reloadIfNewerMethod · 0.45
loadConfigurationFunction · 0.45

Calls 1

ExceptionClass · 0.50

Tested by 2

SetUpMethod · 0.36
loadConfigurationFunction · 0.36