MXS-1734 Add possibility to instruct when to dump statements
With the configuration entry dump_last_statements=[never|on_close|on_error] you can now specify when and if to dump the last statements of of a session.
This commit is contained in:
@ -1410,7 +1410,11 @@ static int gw_client_hangup_event(DCB *dcb)
|
||||
CHK_SESSION(session);
|
||||
if (session->state != SESSION_STATE_DUMMY && !session_valid_for_pool(session))
|
||||
{
|
||||
session_dump_statements(session);
|
||||
if (session_get_dump_statements() == SESSION_DUMP_STATEMENTS_ON_ERROR)
|
||||
{
|
||||
session_dump_statements(session);
|
||||
}
|
||||
|
||||
// The client did not send a COM_QUIT packet
|
||||
modutil_send_mysql_err_packet(dcb, 0, 0, 1927, "08S01", "Connection killed by MaxScale");
|
||||
}
|
||||
|
Reference in New Issue
Block a user