Fix hang with large COM_STMT_SEND_LONG_DATA

The router did not take large packets into account when determining
whether the server will respond. This caused the response counts to be off
by one for all large packets.
This commit is contained in:
Markus Mäkelä
2018-04-30 20:13:15 +03:00
parent 64d84cf1e0
commit 8ad3b903f9

View File

@ -965,7 +965,7 @@ bool RWSplitSession::handle_got_target(GWBUF* querybuf, SRWBackend& target, bool
}
if (m_qc.load_data_state() != QueryClassifier::LOAD_DATA_ACTIVE &&
mxs_mysql_command_will_respond(cmd))
!m_qc.large_query() && mxs_mysql_command_will_respond(cmd))
{
response = mxs::Backend::EXPECT_RESPONSE;
}