mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 13:32:33 +01:00
A fix for SHOW PROCESSLIST bug
This commit is contained in:
parent
ad32b455bc
commit
8d5fae86c7
1 changed files with 2 additions and 2 deletions
|
@ -1064,10 +1064,10 @@ void mysqld_list_processes(THD *thd,const char *user, bool verbose)
|
|||
{
|
||||
if ((thd_info->host= thd->alloc(LIST_PROCESS_HOST_LEN+1)))
|
||||
my_snprintf((char *) thd_info->host, LIST_PROCESS_HOST_LEN,
|
||||
"%s:%u", thd->host_or_ip, tmp->peer_port);
|
||||
"%s:%u", tmp->host_or_ip, tmp->peer_port);
|
||||
}
|
||||
else
|
||||
thd_info->host= thd->strdup(thd->host_or_ip);
|
||||
thd_info->host= thd->strdup(tmp->host_or_ip);
|
||||
if ((thd_info->db=tmp->db)) // Safe test
|
||||
thd_info->db=thd->strdup(thd_info->db);
|
||||
thd_info->command=(int) tmp->command;
|
||||
|
|
Loading…
Reference in a new issue