Fix mutex order according to a new sequence.

This commit is contained in:
Oleksandr Byelkin 2021-11-02 13:09:35 +01:00
parent eab7f5d8bc
commit bb46b79c8c

View file

@ -9269,8 +9269,8 @@ static my_bool kill_threads_callback(THD *thd, kill_threads_callback_arg *arg)
return 1;
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_data);
}
}
}