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

@ -553,7 +553,7 @@ void RWSplitSession::clientReply(GWBUF *writebuf, DCB *backend_dcb)
if (backend->has_session_commands())
{
if (backend->execute_session_command())
if (backend->execute_session_command() && backend->is_waiting_result())
{
m_expected_responses++;
}