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();