mirror of
https://github.com/MariaDB/server.git
synced 2026-05-06 15:15:34 +02:00
MDEV-531 : Warning: Forcing close of thread ... in rpl_binlog_index
Use post_kill_notification in for one_thread_per_connection scheduler, the same as already used in threadpool, to reliably wake a thread stuck in read() or in different poll() variations.
This commit is contained in:
parent
27bcea09e5
commit
4ffc9c3b01
7 changed files with 33 additions and 36 deletions
|
|
@ -544,22 +544,6 @@ void tp_end(void)
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
Notify pool about connection being killed.
|
||||
*/
|
||||
void tp_post_kill_notification(THD *thd)
|
||||
{
|
||||
if (current_thd == thd)
|
||||
return; /* There is nothing to do.*/
|
||||
|
||||
if (thd->system_thread)
|
||||
return; /* Will crash if we attempt to kill system thread. */
|
||||
|
||||
Vio *vio= thd->net.vio;
|
||||
|
||||
vio_shutdown(vio, SD_BOTH);
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
Handle read completion/notification.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue