Fix debug assertion
The GWBUF_IS_CONTIGUOUS macro changed in 2.4 and it no longer allows null arguments.
This commit is contained in:
@ -1021,7 +1021,7 @@ static int gw_read_and_write(DCB* dcb)
|
|||||||
{
|
{
|
||||||
stmt = modutil_get_next_MySQL_packet(&read_buffer);
|
stmt = modutil_get_next_MySQL_packet(&read_buffer);
|
||||||
|
|
||||||
if (!GWBUF_IS_CONTIGUOUS(stmt))
|
if (stmt && !GWBUF_IS_CONTIGUOUS(stmt))
|
||||||
{
|
{
|
||||||
// Make sure the buffer is contiguous
|
// Make sure the buffer is contiguous
|
||||||
stmt = gwbuf_make_contiguous(stmt);
|
stmt = gwbuf_make_contiguous(stmt);
|
||||||
|
Reference in New Issue
Block a user