mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +00:00
Fix lock-order-inversion in DatabaseCatalog
This commit is contained in:
parent
bf8a82d058
commit
6d3d33638a
@ -274,10 +274,12 @@ void DatabaseCatalog::shutdownImpl()
|
||||
database->shutdown();
|
||||
}
|
||||
|
||||
TablesMarkedAsDropped tables_marked_dropped_to_destroy;
|
||||
{
|
||||
std::lock_guard lock(tables_marked_dropped_mutex);
|
||||
tables_marked_dropped.clear();
|
||||
tables_marked_dropped.swap(tables_marked_dropped_to_destroy);
|
||||
}
|
||||
tables_marked_dropped_to_destroy.clear();
|
||||
|
||||
std::lock_guard lock(databases_mutex);
|
||||
for (const auto & db : databases)
|
||||
|
Loading…
Reference in New Issue
Block a user