Commit 868bca5c authored by Daniel Black's avatar Daniel Black Committed by Vladislav Vaintroub

MDEV-15356: tp_timeout_handler needs to call set_killed_no_mutex as it has the mutex

Regression introducted in c2118a08 where LOCK_thd_data was moveed
to LOCK_thd_kill
parent 23d7b773
......@@ -478,7 +478,7 @@ void tp_timeout_handler(TP_connection *c)
return;
THD *thd=c->thd;
mysql_mutex_lock(&thd->LOCK_thd_kill);
thd->set_killed(KILL_WAIT_TIMEOUT);
thd->set_killed_no_mutex(KILL_WAIT_TIMEOUT);
c->priority= TP_PRIORITY_HIGH;
post_kill_notification(thd);
mysql_mutex_unlock(&thd->LOCK_thd_kill);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment