summaryrefslogtreecommitdiff
path: root/sql/sql_parse.cc
diff options
context:
space:
mode:
authorOleksandr Byelkin <sanja@mariadb.com>2020-09-18 17:35:08 +0200
committerOleksandr Byelkin <sanja@mariadb.com>2020-09-18 17:35:08 +0200
commitdec45aca77ee23557c59411fa9abf037e5343739 (patch)
tree1a55e58684ed202d76c24ee59cc86504294a2cbe /sql/sql_parse.cc
parent46fab5b32a84a1ffd181dd16b5cd63958faf010b (diff)
downloadmariadb-git-bb-10.6-MDEV-16440-2.tar.gz
MDEV-23752 SHOW EXPLAIN FOR thd waits for sleepbb-10.6-MDEV-16440-2
my_apc awake thread after request.
Diffstat (limited to 'sql/sql_parse.cc')
-rw-r--r--sql/sql_parse.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc
index 8c95aa0a760..85b10d8cf88 100644
--- a/sql/sql_parse.cc
+++ b/sql/sql_parse.cc
@@ -7649,7 +7649,7 @@ static bool wsrep_mysql_parse(THD *thd, char *rawbuf, uint length,
/*
Convert all ER_QUERY_INTERRUPTED errors to ER_LOCK_DEADLOCK
if the transaction was BF aborted. This can happen when the
- transaction is being BF aborted via thd->awake() while it is
+ transaction is being BF aborted via thd->kill_me_pls() while it is
still executing.
Note that this must be done before wsrep_after_statement() call
@@ -9047,6 +9047,7 @@ kill_one_thread(THD *thd, longlong id, killed_state kill_signal, killed_type typ
#endif /* WITH_WSREP */
{
#ifdef WITH_WSREP
+ // following is historic name, mean kill_me_pls_no_mutex now
DEBUG_SYNC(thd, "before_awake_no_mutex");
if (tmp->wsrep_aborter && tmp->wsrep_aborter != thd->thread_id)
{
@@ -9060,7 +9061,7 @@ kill_one_thread(THD *thd, longlong id, killed_state kill_signal, killed_type typ
{
WSREP_DEBUG("kill_one_thread %llu, victim: %llu wsrep_aborter %llu by signal %d",
thd->thread_id, id, tmp->wsrep_aborter, kill_signal);
- tmp->awake_no_mutex(kill_signal);
+ tmp->kill_me_pls_no_mutex(kill_signal);
WSREP_DEBUG("victim: %llu taken care of", id);
error= 0;
}
@@ -9152,7 +9153,7 @@ static uint kill_threads_for_user(THD *thd, LEX_USER *user,
THD *ptr= it2++;
do
{
- ptr->awake_no_mutex(kill_signal);
+ ptr->kill_me_pls_no_mutex(kill_signal);
/*
Careful here: The list nodes are allocated on the memroots of the
THDs to be awakened.