Merge pull request #63181 from ClickHouse/fix_update_servers

[WIP] Fix premature server listen for connections
This commit is contained in:
alesapin 2024-05-01 11:33:24 +00:00 committed by GitHub
commit 44ee520f2d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1573,8 +1573,11 @@ try
global_context->reloadQueryMaskingRulesIfChanged(config);
std::lock_guard lock(servers_lock);
updateServers(*config, server_pool, async_metrics, servers, servers_to_start_before_tables);
if (global_context->isServerCompletelyStarted())
{
std::lock_guard lock(servers_lock);
updateServers(*config, server_pool, async_metrics, servers, servers_to_start_before_tables);
}
}
global_context->updateStorageConfiguration(*config);