From 01be4ced0cc2fff4833e2bb9986f10faa386d68c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Canna=C3=B2?= Date: Fri, 3 May 2019 18:36:21 +1000 Subject: [PATCH] Temporary disable AWS Aurora module --- lib/ProxySQL_Admin.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/ProxySQL_Admin.cpp b/lib/ProxySQL_Admin.cpp index 9ac1178ff..d10a0efb3 100644 --- a/lib/ProxySQL_Admin.cpp +++ b/lib/ProxySQL_Admin.cpp @@ -8170,7 +8170,11 @@ void ProxySQL_Admin::load_mysql_servers_to_runtime() { if (resultset) delete resultset; resultset=NULL; +#ifdef AURORA_TEST // temporary enabled only for testing purpose query=(char *)"SELECT a.* FROM mysql_aws_aurora_hostgroups a LEFT JOIN mysql_aws_aurora_hostgroups b ON (a.writer_hostgroup=b.reader_hostgroup) WHERE b.reader_hostgroup IS NULL"; +#else + query=(char *)"SELECT a.* FROM mysql_aws_aurora_hostgroups a WHERE 1=0"; +#endif proxy_debug(PROXY_DEBUG_ADMIN, 4, "%s\n", query); admindb->execute_statement(query, &error , &cols , &affected_rows , &resultset_aws_aurora); if (error) { @@ -8179,7 +8183,6 @@ void ProxySQL_Admin::load_mysql_servers_to_runtime() { // Pass the resultset to MyHGM MyHGM->set_incoming_aws_aurora_hostgroups(resultset_aws_aurora); } - // commit all the changes MyHGM->commit();