Add more error messages for unexpected situations

Some error messages were logged at INFO level and some had conditions that
prevent the logging. Removed these restrictions that an error situation is
always logged.
This commit is contained in:
Markus Makela
2016-11-03 10:16:46 +02:00
parent 3870b81244
commit 8f6c1bdd5b
2 changed files with 16 additions and 16 deletions

View File

@ -1368,6 +1368,12 @@ static int gw_error_backend_event(DCB *dcb)
CHK_SESSION(session);
if (SESSION_STATE_DUMMY == session->state)
{
if (dcb->persistentstart == 0)
{
/** Not a persistent connection, something is wrong. */
MXS_ERROR("EPOLLERR event on a non-persistent DCB with no session. "
"Closing connection.");
}
dcb_close(dcb);
return 1;
}