mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 16:42:05 +00:00
dbms: allowed to specify 'interserver_http_host' in metrika.xml for metrika package [#MTRSADMIN-1483].
This commit is contained in:
parent
9e1486bfde
commit
6448560938
@ -485,15 +485,12 @@ int Server::main(const std::vector<std::string> & args)
|
||||
|
||||
if (config().has("interserver_http_port"))
|
||||
{
|
||||
String this_host;
|
||||
if (config().has("interserver_http_host"))
|
||||
{
|
||||
this_host = config().getString("interserver_http_host");
|
||||
}
|
||||
else
|
||||
String this_host = config().getString("interserver_http_host", "");
|
||||
|
||||
if (this_host.empty())
|
||||
{
|
||||
this_host = getFQDNOrHostName();
|
||||
LOG_DEBUG(log, "Configuration parameter 'interserver_http_host' doesn't exist. Will use '" + this_host + "' as replica host.");
|
||||
LOG_DEBUG(log, "Configuration parameter 'interserver_http_host' doesn't exist or exists and empty. Will use '" + this_host + "' as replica host.");
|
||||
}
|
||||
|
||||
String port_str = config().getString("interserver_http_port");
|
||||
|
Loading…
Reference in New Issue
Block a user