未验证 提交 9d9684cc 编写于 作者: A alesapin 提交者: GitHub

Merge pull request #21676 from azat/fix-server-startup

Start accepting connections after DDLWorker and dictionaries initialization
......@@ -1280,9 +1280,6 @@ int Server::main(const std::vector<std::string> & /*args*/)
async_metrics.start();
global_context->enableNamedSessions();
for (auto & server : *servers)
server.start();
{
String level_str = config().getString("text_log.level", "");
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));
}
for (auto & server : *servers)
server.start();
LOG_INFO(log, "Ready for connections.");
SCOPE_EXIT({
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册