mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 09:32:06 +00:00
Merge pull request #21676 from azat/fix-server-startup
Start accepting connections after DDLWorker and dictionaries initialization
This commit is contained in:
commit
9d9684cc42
@ -1280,9 +1280,6 @@ int Server::main(const std::vector<std::string> & /*args*/)
|
|||||||
async_metrics.start();
|
async_metrics.start();
|
||||||
global_context->enableNamedSessions();
|
global_context->enableNamedSessions();
|
||||||
|
|
||||||
for (auto & server : *servers)
|
|
||||||
server.start();
|
|
||||||
|
|
||||||
{
|
{
|
||||||
String level_str = config().getString("text_log.level", "");
|
String level_str = config().getString("text_log.level", "");
|
||||||
int level = level_str.empty() ? INT_MAX : Poco::Logger::parseLevel(level_str);
|
int level = level_str.empty() ? INT_MAX : Poco::Logger::parseLevel(level_str);
|
||||||
@ -1334,6 +1331,8 @@ int Server::main(const std::vector<std::string> & /*args*/)
|
|||||||
"distributed_ddl", "DDLWorker", &CurrentMetrics::MaxDDLEntryID));
|
"distributed_ddl", "DDLWorker", &CurrentMetrics::MaxDDLEntryID));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for (auto & server : *servers)
|
||||||
|
server.start();
|
||||||
LOG_INFO(log, "Ready for connections.");
|
LOG_INFO(log, "Ready for connections.");
|
||||||
|
|
||||||
SCOPE_EXIT({
|
SCOPE_EXIT({
|
||||||
|
Loading…
Reference in New Issue
Block a user