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:
@ -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++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user