Revert "Route statements in larger batches"

This reverts commit f3c83770903151a0a3b53593c3e05fa0af94cd5f. The
functionality was used implicitly by modules that declare the
RCAP_TYPE_CONTIGUOUS_OUTPUT capability.
This commit is contained in:
Markus Mäkelä 2017-04-04 09:42:31 +03:00
parent 0c3f9ffa2e
commit 1ff83150f0

View File

@ -778,6 +778,11 @@ gw_read_and_write(DCB *dcb)
return 0;
}
}
else if (rcap_type_required(capabilities, RCAP_TYPE_STMT_OUTPUT) &&
!rcap_type_required(capabilities, RCAP_TYPE_RESULTSET_OUTPUT))
{
stmt = modutil_get_next_MySQL_packet(&read_buffer);
}
else
{
stmt = read_buffer;