1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

mdev-201 - Assertion `!thd->spcont' failed in net_send_error on server shutdown

bug in semisync plugin. It didn't check thd->killed before waiting on mysys->current_cond,
and thus an attepmt to kill the thread (on shutdown) was lost

plugin/semisync/semisync_master.cc:
  mdev:201 lp:962540
This commit is contained in:
Sergei Golubchik
2012-03-27 16:16:44 +02:00
parent 903ad7c941
commit 3d0775e9af
2 changed files with 6 additions and 2 deletions

View File

@ -3735,6 +3735,9 @@ void THD::restore_backup_open_tables_state(Open_tables_backup *backup)
extern "C" int thd_killed(const MYSQL_THD thd)
{
if (!thd)
thd= current_thd;
if (!(thd->killed & KILL_HARD_BIT))
return 0;
return thd->killed;