Log low-level reason and idle time on master failure

If the connection to the master is lost, knowing what type of an error
caused the call to handleError helps deduce what was the real reason for
it. Logging the idle time of the connection helps detect when the
wait_timeout of a connection is exceeded.
This commit is contained in:
Markus Mäkelä
2019-01-14 13:14:20 +02:00
parent 8cef8b9472
commit 021d48f94c
4 changed files with 16 additions and 3 deletions

View File

@ -1465,7 +1465,8 @@ static int backend_write_delayqueue(DCB* dcb, GWBUF* buffer)
if (rc == 0)
{
do_handle_error(dcb, ERRACT_NEW_CONNECTION, "Lost connection to backend server.");
do_handle_error(dcb, ERRACT_NEW_CONNECTION,
"Lost connection to backend server while writing delay queue.");
}
return rc;