Route statements in larger batches

The RCAP_TYPE_STMT_OUTPUT is not used in its previous form. It can be
altered to route only complete packets back to the client. This allows
routers to do safer parsing on the results.
This commit is contained in:
Markus Mäkelä
2017-03-31 13:26:57 +03:00
parent d4da5caf3b
commit f3c8377090

View File

@ -778,11 +778,6 @@ 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;