diff --git a/server/modules/monitor/mysqlmon/mysql_mon.cc b/server/modules/monitor/mysqlmon/mysql_mon.cc index 3a328c409..0332f16cf 100644 --- a/server/modules/monitor/mysqlmon/mysql_mon.cc +++ b/server/modules/monitor/mysqlmon/mysql_mon.cc @@ -3605,10 +3605,10 @@ static bool switchover_demote_master(MYSQL_MONITOR* mon, const char* query = "SET GLOBAL read_only=1;"; if (mxs_mysql_query(current_master->con, query) == 0) { - query = "FLUSH LOGS;"; + query = "FLUSH TABLES;"; if (mxs_mysql_query(current_master->con, query) == 0) { - query = "FLUSH TABLES;"; + query = "FLUSH LOGS;"; if (mxs_mysql_query(current_master->con, query) == 0) { query = "";