From ebcf4afa52f8c618386ee1e86a4dda0ca3a2537d Mon Sep 17 00:00:00 2001 From: VilhoRaatikka Date: Tue, 20 May 2014 22:34:43 +0300 Subject: [PATCH] Invalid invariant in assert caused MaxScale to trap if more bytes were read than the first mysql packet contained according to the mysql packet length field. Since it is typical that session updates and mysql packets come in same transfer this check fails in correct cases as well. Removed assertion. --- server/modules/protocol/mysql_client.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/server/modules/protocol/mysql_client.c b/server/modules/protocol/mysql_client.c index ba1013e95..3096225dc 100644 --- a/server/modules/protocol/mysql_client.c +++ b/server/modules/protocol/mysql_client.c @@ -617,8 +617,6 @@ int gw_read_client_event(DCB* dcb) { } } ss_dassert(nbytes_read >= MYSQL_GET_PACKET_LEN((uint8_t *)GWBUF_DATA(read_buffer))+4); - ss_dassert(nbytes_read == MYSQL_GET_PACKET_LEN((uint8_t *)GWBUF_DATA(read_buffer))+4 || - dcb->dcb_readqueue != NULL); /** * Now there should be at least one complete mysql packet in read_buffer.