MXS-2220 Move most remaining functions inside class
Most of the ones still remaining outside are special cases. Also, removed locking from status manipulation functions as it has not been required for quite some time.
This commit is contained in:
@ -341,7 +341,7 @@ static void handle_error_response(DCB* dcb, GWBUF* buffer)
|
||||
dcb->server->address,
|
||||
dcb->server->port);
|
||||
|
||||
mxs::server_set_status(dcb->server, SERVER_MAINT, NULL);
|
||||
mxs::server_set_status(dcb->server, SERVER_MAINT);
|
||||
}
|
||||
else if (errcode == ER_ACCESS_DENIED_ERROR
|
||||
|| errcode == ER_DBACCESS_DENIED_ERROR
|
||||
@ -1214,7 +1214,7 @@ static int gw_MySQLWrite_backend(DCB* dcb, GWBUF* queue)
|
||||
dcb->server->name(),
|
||||
backend_protocol->protocol_auth_state == MXS_AUTH_STATE_HANDSHAKE_FAILED ?
|
||||
"handshake" : "authentication",
|
||||
mxs::server_status(dcb->server).c_str());
|
||||
dcb->server->status_string().c_str());
|
||||
}
|
||||
|
||||
gwbuf_free(queue);
|
||||
|
Reference in New Issue
Block a user