MXS-3582: Backport fix to 2.3 and 2.4

2.3 and 2.4 seem to also be affected by it.
This commit is contained in:
Markus Mäkelä
2021-06-04 14:05:48 +03:00
parent b7e4ee6faa
commit 946f2e57fa

View File

@ -1223,7 +1223,6 @@ static int gw_MySQLWrite_backend(DCB* dcb, GWBUF* queue)
MXS_INFO("COM_QUIT received while COM_CHANGE_USER is in progress, closing pooled connection");
gwbuf_free(queue);
poll_fake_hangup_event(dcb);
rc = 0;
}
else
{
@ -1235,9 +1234,8 @@ static int gw_MySQLWrite_backend(DCB* dcb, GWBUF* queue)
*/
MXS_INFO("COM_CHANGE_USER in progress, appending query to queue");
backend_protocol->stored_query = gwbuf_append(backend_protocol->stored_query, queue);
rc = 1;
}
return rc;
return 1;
}
/**