Fix MXS-1323 regression

The check for session command count on failed session command was inverted
so that only session command failures would be routed to the client.
This commit is contained in:
Markus Mäkelä 2017-08-13 06:21:42 +03:00
parent 24bec67d90
commit db8ad7efa8

View File

@ -415,7 +415,7 @@ static bool handle_error_new_connection(RWSplit *inst,
gwbuf_free(stored);
myrses->expected_responses--;
if (backend->session_command_count())
if (backend->session_command_count() == 0)
{
/**
* The backend was executing a command that requires a reply.