cherry-pick: MXS-2803: Write all buffered data
Since the queued queries will never be inspected after the COM_CHANGE_USER completes, they should all be written instead of only the first packet.
This commit is contained in:
parent
c04d6748d3
commit
6dd4a04c5d
@ -945,7 +945,7 @@ static int gw_read_and_write(DCB* dcb)
|
||||
if (proto->ignore_replies > 0)
|
||||
{
|
||||
/** The reply to a COM_CHANGE_USER is in packet */
|
||||
GWBUF* query = modutil_get_next_MySQL_packet(&proto->stored_query);
|
||||
GWBUF* query = proto->stored_query;
|
||||
proto->stored_query = NULL;
|
||||
proto->ignore_replies--;
|
||||
mxb_assert(proto->ignore_replies >= 0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user