Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
markus456 committed Dec 13, 2019
1 parent e909632 commit c1b5d70
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -928,7 +928,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);
Expand Down

0 comments on commit c1b5d70

Please sign in to comment.