mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 07:31:57 +00:00
Fix data race in SYSTEM STOP LISTEN
This commit is contained in:
parent
b8695525ad
commit
bb0375d970
@ -1516,11 +1516,13 @@ try
|
||||
|
||||
global_context->setStopServersCallback([&](const ServerType & server_type)
|
||||
{
|
||||
std::lock_guard lock(servers_lock);
|
||||
stopServers(servers, server_type);
|
||||
});
|
||||
|
||||
global_context->setStartServersCallback([&](const ServerType & server_type)
|
||||
{
|
||||
std::lock_guard lock(servers_lock);
|
||||
createServers(
|
||||
config(),
|
||||
listen_hosts,
|
||||
|
Loading…
Reference in New Issue
Block a user