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:
parent
6c5fa071d5
commit
948f66f918
@ -922,6 +922,12 @@ gw_read_and_write(DCB *dcb)
|
||||
!result_collected)
|
||||
{
|
||||
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
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user