Log a message in readconnroute's handleError

This way there's trace that something unexpected happened and that the
session closed unexpectedly.
This commit is contained in:
Markus Mäkelä 2019-10-29 12:04:38 +02:00
parent 6cba7e8201
commit 5c4ac03c07
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -712,6 +712,8 @@ static void handleError(MXS_ROUTER* instance,
{
mxb_assert(problem_dcb->dcb_role == DCB_ROLE_BACKEND_HANDLER);
mxb_assert(problem_dcb->session->state == SESSION_STATE_ROUTER_READY);
MXS_INFO("Server '%s' failed", problem_dcb->server->name);
DCB* client_dcb = problem_dcb->session->client_dcb;
client_dcb->func.write(client_dcb, gwbuf_clone(errbuf));