Assert that query queue contains complete packets
The query queue in readwritesplit must not contain partial packets. If it does, something is broken as only complete packets should ever be in it.
This commit is contained in:
parent
ee6e2b28b2
commit
30ac15817f
@ -471,6 +471,7 @@ static bool route_stored_query(RWSplitSession *rses)
|
||||
{
|
||||
GWBUF* query_queue = modutil_get_next_MySQL_packet(&rses->query_queue);
|
||||
query_queue = gwbuf_make_contiguous(query_queue);
|
||||
ss_dassert(query_queue);
|
||||
|
||||
/** Store the query queue locally for the duration of the routeQuery call.
|
||||
* This prevents recursive calls into this function. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user