Merge pull request #10491 from azat/dist-shutdown

Proper Distributed shutdown (fixes UAF, avoid waiting for sending all batches)
This commit is contained in:
alexey-milovidov 2020-04-25 23:47:59 +03:00 committed by GitHub
commit c9334d3fde
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -570,6 +570,9 @@ void StorageDistributed::startup()
void StorageDistributed::shutdown()
{
monitors_blocker.cancelForever();
std::lock_guard lock(cluster_nodes_mutex);
cluster_nodes_data.clear();
}