From d7d3ad698abde16978e094b825e17a6ecd8604e8 Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Wed, 28 Sep 2022 13:00:38 +0200 Subject: [PATCH] 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 --- sql/debug_sync.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/debug_sync.cc b/sql/debug_sync.cc index 09aa0695127..b5de53be000 100644 --- a/sql/debug_sync.cc +++ b/sql/debug_sync.cc @@ -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,