mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +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)
|
global_context->setStopServersCallback([&](const ServerType & server_type)
|
||||||
{
|
{
|
||||||
|
std::lock_guard lock(servers_lock);
|
||||||
stopServers(servers, server_type);
|
stopServers(servers, server_type);
|
||||||
});
|
});
|
||||||
|
|
||||||
global_context->setStartServersCallback([&](const ServerType & server_type)
|
global_context->setStartServersCallback([&](const ServerType & server_type)
|
||||||
{
|
{
|
||||||
|
std::lock_guard lock(servers_lock);
|
||||||
createServers(
|
createServers(
|
||||||
config(),
|
config(),
|
||||||
listen_hosts,
|
listen_hosts,
|
||||||
|
Loading…
Reference in New Issue
Block a user