Fix debug assert on reconnection with session commands

When a query was routed to a server that must first be connected to, the
expected response count was not updated for the executed session commands.
This commit is contained in:
Markus Mäkelä
2018-06-13 10:41:23 +03:00
parent 9dd8043359
commit 3ed6411741
4 changed files with 12 additions and 11 deletions

View File

@ -96,6 +96,7 @@ bool Backend::execute_session_command()
{
case MXS_COM_QUIT:
case MXS_COM_STMT_CLOSE:
case MXS_COM_STMT_SEND_LONG_DATA:
/** These commands do not generate responses */
rval = write(buffer, NO_RESPONSE);
complete_session_command();