From 7661d989eca8ae84331effa0403fb01d493cf18e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Jaramago=20Fern=C3=A1ndez?= Date: Thu, 21 May 2020 19:17:59 +0200 Subject: [PATCH] Added extra logging info for the new hostgroup tables synchronization --- lib/ProxySQL_Cluster.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lib/ProxySQL_Cluster.cpp b/lib/ProxySQL_Cluster.cpp index 9ce46237b..90d68b86e 100644 --- a/lib/ProxySQL_Cluster.cpp +++ b/lib/ProxySQL_Cluster.cpp @@ -1100,6 +1100,10 @@ void ProxySQL_Cluster::pull_mysql_servers_from_peer() { GloAdmin->admindb->execute(query); free(query); } + proxy_info("Dumping fetched 'mysql_group_replication_hostgroups'\n"); + GloAdmin->admindb->execute_statement((char *)"SELECT * FROM mysql_group_replication_hostgroups", &error , &cols , &affected_rows , &resultset); + resultset->dump_to_stderr(); + delete resultset; // sync mysql_galera_hostgroups proxy_info("Cluster: Writing mysql_galera_hostgroups table\n"); @@ -1131,6 +1135,10 @@ void ProxySQL_Cluster::pull_mysql_servers_from_peer() { GloAdmin->admindb->execute(query); free(query); } + proxy_info("Dumping fetched 'mysql_galera_hostgroups'\n"); + GloAdmin->admindb->execute_statement((char *)"SELECT * FROM mysql_galera_hostgroups", &error , &cols , &affected_rows , &resultset); + resultset->dump_to_stderr(); + delete resultset; // sync mysql_aws_aurora_hostgroups proxy_info("Cluster: Writing mysql_aws_aurora_hostgroups table\n"); @@ -1162,6 +1170,10 @@ void ProxySQL_Cluster::pull_mysql_servers_from_peer() { GloAdmin->admindb->execute(query); free(query); } + proxy_info("Dumping fetched 'mysql_aws_aurora_hostgroups'\n"); + GloAdmin->admindb->execute_statement((char *)"SELECT * FROM mysql_aws_aurora_hostgroups", &error , &cols , &affected_rows , &resultset); + resultset->dump_to_stderr(); + delete resultset; proxy_info("Cluster: Loading to runtime MySQL Servers from peer %s:%d\n", hostname, port); GloAdmin->load_mysql_servers_to_runtime();