summaryrefslogtreecommitdiff
path: root/sql/sql_show.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_show.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_show.cc')
-rw-r--r--sql/sql_show.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/sql_show.cc b/sql/sql_show.cc
index 452690f3237..4ed4f7b270e 100644
--- a/sql/sql_show.cc
+++ b/sql/sql_show.cc
@@ -3125,7 +3125,8 @@ int fill_show_explain(THD *thd, TABLE_LIST *table, COND *cond)
explain_req.failed_to_produce= FALSE;
/* Ok, we have a lock on target->LOCK_thd_kill, can call: */
- bres= tmp->apc_target.make_apc_call(thd, &explain_req, timeout_sec, &timed_out);
+ bres= tmp->apc_target.make_apc_call(tmp, thd, &explain_req,
+ timeout_sec, &timed_out);
if (bres || explain_req.failed_to_produce)
{