MXS-1713: Fix resultset collection code

The resultset collection was not detected early enough in the code which
caused partial results to be returned to the router.
This commit is contained in:
Markus Mäkelä
2018-03-10 12:47:53 +02:00
parent ff13fa633e
commit 2023ee4dc7
4 changed files with 102 additions and 0 deletions

View File

@ -752,6 +752,7 @@ gw_read_and_write(DCB *dcb)
if (rcap_type_required(capabilities, RCAP_TYPE_PACKET_OUTPUT) ||
rcap_type_required(capabilities, RCAP_TYPE_CONTIGUOUS_OUTPUT) ||
proto->collect_result ||
proto->ignore_replies != 0)
{
GWBUF *tmp = modutil_get_complete_packets(&read_buffer);