Skip to content

Commit

Permalink
Fix show connectionlist problems
Browse files Browse the repository at this point in the history
  • Loading branch information
lazio579 committed Mar 12, 2019
1 parent 27f15ec commit a803fa6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/admin/admin-commands.c
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ void admin_show_connectionlist(network_mysqld_con *con, int show_count)
}
}

if (con->servers != NULL) {
#ifndef SIMPLE_PARSER
int j;
GString *servers = g_string_new(NULL);
for (j = 0; j < con->servers->len; j++) {
Expand All @@ -583,7 +583,7 @@ void admin_show_connectionlist(network_mysqld_con *con, int show_count)
g_ptr_array_add(row, g_strdup(servers->str));
g_string_free(servers, TRUE);

} else {
#else
if (con->server != NULL) {
GString *server = g_string_new(NULL);
if (con->server->src) {
Expand All @@ -597,7 +597,7 @@ void admin_show_connectionlist(network_mysqld_con *con, int show_count)
} else {
g_ptr_array_add(row, NULL);
}
}
#endif

if (con->orig_sql->len) {
if (con->state == ST_READ_QUERY) {
Expand Down

0 comments on commit a803fa6

Please sign in to comment.