Specify HG when shunning or resuming nodes due to replication lag

pull/1856/head
René Cannaò 8 years ago
parent 0f56d576d1
commit 6a9655082b

@ -2486,7 +2486,7 @@ void MySQL_HostGroups_Manager::replication_lag_action(int _hid, char *address, u
// ||
(current_replication_lag>=0 && ((unsigned int)current_replication_lag > mysrvc->max_replication_lag))
) {
proxy_warning("Shunning server %s:%d with replication lag of %d second\n", address, port, current_replication_lag);
proxy_warning("Shunning server %s:%d from HG %u with replication lag of %d second\n", address, port, myhgc->hid, current_replication_lag);
mysrvc->status=MYSQL_SERVER_STATUS_SHUNNED_REPLICATION_LAG;
}
} else {
@ -2497,7 +2497,7 @@ void MySQL_HostGroups_Manager::replication_lag_action(int _hid, char *address, u
(current_replication_lag==-2) // see issue 959
) {
mysrvc->status=MYSQL_SERVER_STATUS_ONLINE;
proxy_warning("Re-enabling server %s:%d with replication lag of %d second\n", address, port, current_replication_lag);
proxy_warning("Re-enabling server %s:%d from HG %u with replication lag of %d second\n", address, port, myhgc->hid, current_replication_lag);
}
}
}

Loading…
Cancel
Save