Fix readwritesplit hang when query is queued

Readwritesplit would hang when the query execution is postponed due to the
fact that the target server is executing a session command. The number of
expected responses was incremented when no response was expected.
This commit is contained in:
Markus Mäkelä
2018-06-12 22:01:54 +03:00
parent 17535acfc3
commit 70104f957e

View File

@ -226,7 +226,6 @@ bool RWSplitSession::route_single_stmt(GWBUF *querybuf)
else if (target->has_session_commands())
{
// We need to wait until the session commands are executed
m_expected_responses++;
m_query_queue = gwbuf_append(m_query_queue, gwbuf_clone(querybuf));
MXS_INFO("Queuing query until '%s' completes session command", target->name());
}