Bug #164 | mysqladmin processlist shows wrong hostname in MySQL 4.0.12 | ||
---|---|---|---|
Submitted: | 19 Mar 2003 5:18 | Modified: | 19 Mar 2003 6:12 |
Reporter: | Peter Zaitsev (Basic Quality Contributor) | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server | Severity: | S2 (Serious) |
Version: | 4.0 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[19 Mar 2003 5:18]
Peter Zaitsev
[19 Mar 2003 6:12]
MySQL Verification Team
=== sql_show.cc 1.102 vs edited ===== *** /tmp/sql_show.cc-1.102-30554 Fri Feb 28 21:17:38 2003 --- edited/sql_show.cc Wed Mar 19 15:49:11 2003 *************** *** 1064,1073 **** { 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); } else ! thd_info->host= thd->strdup(thd->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; --- 1064,1073 ---- { if ((thd_info->host= thd->alloc(LIST_PROCESS_HOST_LEN+1))) my_snprintf((char *) thd_info->host, LIST_PROCESS_HOST_LEN, ! "%s:%u", tmp->host_or_ip, tmp->peer_port); } else ! 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;