@ -221,16 +221,21 @@ int gw_read_backend_handshake(
|
|||||||
errcode,
|
errcode,
|
||||||
bufstr)));
|
bufstr)));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* If ER_HOST_IS_BLOCKED is found
|
||||||
|
* the related server is put in maintenace mode
|
||||||
|
* This will avoid filling the error log.
|
||||||
|
*/
|
||||||
|
|
||||||
if (errcode == 1129) {
|
if (errcode == 1129) {
|
||||||
LOGIF(LE, (skygw_log_write_flush(
|
LOGIF(LE, (skygw_log_write_flush(
|
||||||
LOGFILE_ERROR,
|
LOGFILE_ERROR,
|
||||||
"Server %s has been put into maintenance mode due to the server blocking connections from MaxScale. Run 'mysqladmin -h %s -P %d flush-hosts' on this server before taking this server out of maintenance mode.",
|
"Server %s has been put into maintenance mode due to the server blocking connections from MaxScale. Run 'mysqladmin -h %s -P %d flush-hosts' on this server before taking this server out of maintenance mode.",
|
||||||
dcb->server->unique_name,
|
dcb->server->unique_name,
|
||||||
dcb->server->name,
|
dcb->server->name,
|
||||||
dcb->server->port)));
|
dcb->server->port)));
|
||||||
|
|
||||||
server_set_status(dcb->server, SERVER_MAINT);
|
server_set_status(dcb->server, SERVER_MAINT);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
free(bufstr);
|
free(bufstr);
|
||||||
|
Reference in New Issue
Block a user