From a0ddb9835bff2c4de7b245bdf7209113ddb106c7 Mon Sep 17 00:00:00 2001 From: wangbin579 Date: Thu, 16 Aug 2018 17:34:41 +0800 Subject: [PATCH] Modify backend index related problems --- plugins/admin/admin-commands.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/admin/admin-commands.c b/plugins/admin/admin-commands.c index b8558113..0300a72f 100644 --- a/plugins/admin/admin-commands.c +++ b/plugins/admin/admin-commands.c @@ -140,7 +140,7 @@ void admin_select_all_backends(network_mysqld_con* admin_con) network_backend_t *backend = bs->backends->pdata[i]; GPtrArray *row = g_ptr_array_new_with_free_func(g_free); - sprintf(buffer, "%d", i); + sprintf(buffer, "%d", i + 1); g_ptr_array_add(row, g_strdup(buffer));