summaryrefslogtreecommitdiff
path: root/sql/item_func.cc
diff options
context:
space:
mode:
authorNikita Malyavin <nikitamalyavin@gmail.com>2023-03-23 16:29:21 +0300
committerNikita Malyavin <nikitamalyavin@gmail.com>2023-03-23 16:29:21 +0300
commitc16b2429f02c0acca6df068858fd1654fc0fa88b (patch)
tree6ee8c726915ad4c00f2a256ba56ac3b3e673c6e5 /sql/item_func.cc
parentd8c908bb3996269b3b2cdb20bacac66ec1c3a2fa (diff)
downloadmariadb-git-c16b2429f02c0acca6df068858fd1654fc0fa88b.tar.gz
wake up from sleepbb-10.10-MDEV-16440
Diffstat (limited to 'sql/item_func.cc')
-rw-r--r--sql/item_func.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/item_func.cc b/sql/item_func.cc
index e53b89a9291..e2f737e9104 100644
--- a/sql/item_func.cc
+++ b/sql/item_func.cc
@@ -4584,13 +4584,14 @@ longlong Item_func_sleep::val_int()
mysql_cond_init(key_item_func_sleep_cond, &cond, NULL);
mysql_mutex_lock(&LOCK_item_func_sleep);
+ DEBUG_SYNC(thd, "func_sleep_locked");
THD_STAGE_INFO(thd, stage_user_sleep);
thd->mysys_var->current_mutex= &LOCK_item_func_sleep;
thd->mysys_var->current_cond= &cond;
error= 0;
thd_wait_begin(thd, THD_WAIT_SLEEP);
- while (!thd->killed)
+ while (!thd->check_killed(true))
{
error= timed_cond.wait(&cond, &LOCK_item_func_sleep);
if (error == ETIMEDOUT || error == ETIME)