summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorMonty <monty@mariadb.org>2017-12-12 15:42:22 +0200
committerMonty <monty@mariadb.org>2017-12-12 15:42:22 +0200
commitd2f557fa3d64626af8a961324b16b8b9e1642f7e (patch)
tree63ce82263b5c178693cca8be4414e00036b90acc /sql
parent0628123617128bbaa01e8d14498393e28d514082 (diff)
downloadmariadb-git-d2f557fa3d64626af8a961324b16b8b9e1642f7e.tar.gz
Fixed crash in show processlist with blocked connection
If connection was not blocked, the 'db' was not properly reset This bug didn't affect information_schema
Diffstat (limited to 'sql')
-rw-r--r--sql/sql_show.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_show.cc b/sql/sql_show.cc
index b480ce14abe..ae18e1cac04 100644
--- a/sql/sql_show.cc
+++ b/sql/sql_show.cc
@@ -2780,6 +2780,7 @@ void mysqld_list_processes(THD *thd,const char *user, bool verbose)
{
thd_info->proc_info= "Busy";
thd_info->progress= 0.0;
+ thd_info->db= "";
}
thd_info->state_info= thread_state_info(tmp);