summaryrefslogtreecommitdiff
path: root/sql/debug_sync.cc
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2022-09-28 13:00:38 +0200
committerSergei Golubchik <serg@mariadb.org>2022-09-29 00:11:02 +0200
commitd7d3ad698abde16978e094b825e17a6ecd8604e8 (patch)
tree80d78cb0c82f219d4423f8e53e54e1019a2d8700 /sql/debug_sync.cc
parent620d520d680fc8849a518d0fe5172bcedb632564 (diff)
downloadmariadb-git-d7d3ad698abde16978e094b825e17a6ecd8604e8.tar.gz
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
Diffstat (limited to 'sql/debug_sync.cc')
-rw-r--r--sql/debug_sync.cc2
1 files changed, 1 insertions, 1 deletions
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,