mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
Merge pull request #10491 from azat/dist-shutdown
Proper Distributed shutdown (fixes UAF, avoid waiting for sending all batches)
This commit is contained in:
commit
c9334d3fde
@ -570,6 +570,9 @@ void StorageDistributed::startup()
|
||||
|
||||
void StorageDistributed::shutdown()
|
||||
{
|
||||
monitors_blocker.cancelForever();
|
||||
|
||||
std::lock_guard lock(cluster_nodes_mutex);
|
||||
cluster_nodes_data.clear();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user