Prevent double closing of client DCB
If the client is closing the connection but routing the COM_QUIT fails, the DCB would be closed twice.
This commit is contained in:
@ -1086,8 +1086,7 @@ gw_read_finish_processing(DCB *dcb, GWBUF *read_buffer, uint64_t capabilities)
|
|||||||
dcb_close(dcb);
|
dcb_close(dcb);
|
||||||
MXS_ERROR("Routing the query failed. Session will be closed.");
|
MXS_ERROR("Routing the query failed. Session will be closed.");
|
||||||
}
|
}
|
||||||
|
else if (proto->current_command == MXS_COM_QUIT)
|
||||||
if (proto->current_command == MXS_COM_QUIT)
|
|
||||||
{
|
{
|
||||||
/** Close router session which causes closing of backends */
|
/** Close router session which causes closing of backends */
|
||||||
dcb_close(dcb);
|
dcb_close(dcb);
|
||||||
|
Reference in New Issue
Block a user