mirror of
https://github.com/MariaDB/server.git
synced 2026-05-07 07:35:32 +02:00
don't take mutexes conditionally
This commit is contained in:
parent
259a1902a0
commit
9703cffa8c
8 changed files with 16 additions and 40 deletions
|
|
@ -1521,11 +1521,9 @@ static void end_ssl();
|
|||
/* common callee of two shutdown phases */
|
||||
static void kill_thread(THD *thd)
|
||||
{
|
||||
if (WSREP(thd)) mysql_mutex_lock(&thd->LOCK_thd_data);
|
||||
mysql_mutex_lock(&thd->LOCK_thd_kill);
|
||||
thd->abort_current_cond_wait(true);
|
||||
mysql_mutex_unlock(&thd->LOCK_thd_kill);
|
||||
if (WSREP(thd)) mysql_mutex_unlock(&thd->LOCK_thd_data);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue