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:
Markus Mäkelä 2017-10-05 18:30:41 +03:00 committed by Johan Wikman
parent 6c5fa071d5
commit 948f66f918

View File

@ -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
{