MXS-2585: Add temporary workaround
Added a debug assertion that will catch the problem in debug builds and some release mode code that prevents crashes if this ever happens.
This commit is contained in:
@ -119,6 +119,13 @@ void RWSplitSession::close()
|
|||||||
|
|
||||||
int32_t RWSplitSession::routeQuery(GWBUF* querybuf)
|
int32_t RWSplitSession::routeQuery(GWBUF* querybuf)
|
||||||
{
|
{
|
||||||
|
if (!querybuf)
|
||||||
|
{
|
||||||
|
MXS_ERROR("MXS-2585: Null buffer passed to routeQuery, closing session");
|
||||||
|
mxb_assert(!true);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
mxb_assert(GWBUF_IS_CONTIGUOUS(querybuf));
|
mxb_assert(GWBUF_IS_CONTIGUOUS(querybuf));
|
||||||
int rval = 0;
|
int rval = 0;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user