char*new_query=(char*)"SELECT 1 FROM (SELECT hostname,port FROM monitor.mysql_server_ping_log WHERE hostname='%s' AND port='%s' ORDER BY time_start DESC LIMIT %d) a GROUP BY hostname,port HAVING COUNT(*)=%d";
for(j=0;i<i;j++){
char*new_query=(char*)"SELECT 1 FROM (SELECT hostname,port,ping_error FROM mysql_server_ping_log WHERE hostname='%s' AND port='%s' ORDER BY time_start DESC LIMIT %d) a WHERE ping_error IS NOT NULL GROUP BY hostname,port HAVING COUNT(*)=%d";
@ -801,8 +801,8 @@ int MySQL_Connection::async_query(short event, char *stmt, unsigned long length)
||
(parent->status==MYSQL_SERVER_STATUS_SHUNNED&&parent->shunned_automatic==true&&parent->shunned_and_kill_all_connections==true)// the server is SHUNNED due to a serious issue