mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Fix mutex order according to a new sequence.
This commit is contained in:
@ -9269,8 +9269,8 @@ static my_bool kill_threads_callback(THD *thd, kill_threads_callback_arg *arg)
|
|||||||
return 1;
|
return 1;
|
||||||
if (!arg->threads_to_kill.push_back(thd, arg->thd->mem_root))
|
if (!arg->threads_to_kill.push_back(thd, arg->thd->mem_root))
|
||||||
{
|
{
|
||||||
mysql_mutex_lock(&thd->LOCK_thd_data);
|
|
||||||
mysql_mutex_lock(&thd->LOCK_thd_kill); // Lock from delete
|
mysql_mutex_lock(&thd->LOCK_thd_kill); // Lock from delete
|
||||||
|
mysql_mutex_lock(&thd->LOCK_thd_data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user