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:
@ -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;
|
||||
|
Reference in New Issue
Block a user