Skip to content
Permalink
Browse files
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
  • Loading branch information
vuvova committed Sep 28, 2022
1 parent 620d520 commit d7d3ad6
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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,

0 comments on commit d7d3ad6

Please sign in to comment.