Commit a5222e1c authored by bell@sanja.is.com.ua's avatar bell@sanja.is.com.ua

fixed problem of port without host in SHOW PROCESSLIST (bug 189)

parent 26f46fd3
...@@ -1060,7 +1060,7 @@ void mysqld_list_processes(THD *thd,const char *user, bool verbose) ...@@ -1060,7 +1060,7 @@ void mysqld_list_processes(THD *thd,const char *user, bool verbose)
thd_info->user=thd->strdup(tmp->user ? tmp->user : thd_info->user=thd->strdup(tmp->user ? tmp->user :
(tmp->system_thread ? (tmp->system_thread ?
"system user" : "unauthenticated user")); "system user" : "unauthenticated user"));
if (tmp->peer_port && (tmp->host || tmp->ip)) if (tmp->peer_port && (tmp->host || tmp->ip) && thd->host_or_ip[0])
{ {
if ((thd_info->host= thd->alloc(LIST_PROCESS_HOST_LEN+1))) if ((thd_info->host= thd->alloc(LIST_PROCESS_HOST_LEN+1)))
my_snprintf((char *) thd_info->host, LIST_PROCESS_HOST_LEN, my_snprintf((char *) thd_info->host, LIST_PROCESS_HOST_LEN,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment