Check if mmsd is not NULL

Check if mmsd is not NULL
pull/3438/head
peter 5 years ago committed by GitHub
parent 380a245867
commit 414d59070c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -4248,7 +4248,7 @@ void * monitor_AWS_Aurora_thread_HG(void *arg) {
}
#endif // TEST_AURORA
if (found_pingable_host == false) {
if (found_pingable_host == false&&mmsd) {
proxy_error("No node is pingable for AWS Aurora cluster with writer HG %u\n", wHG);
MyHGM->p_update_mysql_error_counter(p_mysql_error_type::proxysql, mmsd->hostgroup_id, mmsd->hostname, mmsd->port, ER_PROXYSQL_AWS_NO_PINGABLE_SRV);
next_loop_at = t1 + check_interval_ms * 1000;

Loading…
Cancel
Save