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:
Markus Mäkelä
2019-12-17 09:19:11 +02:00
parent e3fcf3f876
commit 5224fa5625

View File

@ -119,6 +119,13 @@ void RWSplitSession::close()
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));
int rval = 0;