fix multistatment hang (#180)

This commit is contained in:
dapeng huang
2018-09-11 13:39:12 +08:00
committed by Johan Wikman
parent c878146c24
commit 087272c3e4

View File

@ -823,7 +823,8 @@ gw_read_and_write(DCB *dcb)
if (mxs_mysql_is_result_set(read_buffer))
{
bool more = false;
if (modutil_count_signal_packets(read_buffer, 0, &more, NULL) != 2)
int eof_cnt = modutil_count_signal_packets(read_buffer, 0, &more, NULL);
if (more || eof_cnt % 2 != 0)
{
dcb_readq_prepend(dcb, read_buffer);
return 0;