Make each packet contiguous for RCAP_TYPE_STMT_OUTPUT
As each packet is routed separately, they must be made contiguous before routing them.
This commit is contained in:
@ -922,6 +922,12 @@ gw_read_and_write(DCB *dcb)
|
|||||||
!result_collected)
|
!result_collected)
|
||||||
{
|
{
|
||||||
stmt = modutil_get_next_MySQL_packet(&read_buffer);
|
stmt = modutil_get_next_MySQL_packet(&read_buffer);
|
||||||
|
|
||||||
|
if (!GWBUF_IS_CONTIGUOUS(stmt))
|
||||||
|
{
|
||||||
|
// Make sure the buffer is contiguous
|
||||||
|
stmt = gwbuf_make_contiguous(stmt);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user