In rwsplit router, merge multiple (query) buffers to one if necessary.
This commit is contained in:
VilhoRaatikka 2014-10-15 11:25:17 +03:00
parent 6de751cd83
commit 9c49cd87b1

View File

@ -1708,6 +1708,12 @@ static int routeQuery(
}
goto retblock;
}
/** If buffer is not contiguous, make it such */
if (querybuf->next != NULL)
{
querybuf = gwbuf_make_contiguous(querybuf);
}
master_dcb = router_cli_ses->rses_master_ref->bref_dcb;
CHK_DCB(master_dcb);