1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-09 22:24:09 +03:00

debug_sync: ignore "sort" kills and disconnects

only "hard" kills will now interrupt debug_sync waits.
this is needed to have debug_sync points that work during disconnect
This commit is contained in:
Sergei Golubchik
2022-09-28 13:00:38 +02:00
parent 620d520d68
commit d7d3ad698a

View File

@@ -1467,7 +1467,7 @@ static void debug_sync_execute(THD *thd, st_debug_sync_action *action)
the required dynamic memory allocated.
*/
while (stringcmp(&debug_sync_global.ds_signal, &action->wait_for) &&
!thd->killed && opt_debug_sync_timeout)
!(thd->killed & KILL_HARD_BIT) && opt_debug_sync_timeout)
{
error= mysql_cond_timedwait(&debug_sync_global.ds_cond,
&debug_sync_global.ds_mutex,