Removed a debug assertion which was triggered with a valid query and added more logging.

This commit is contained in:
Markus Makela 2015-08-17 22:42:04 +03:00
parent eac31b2618
commit 501ea8ffc2
2 changed files with 5 additions and 1 deletions

View File

@ -1638,7 +1638,12 @@ static GWBUF* process_response_data (
* bytes in the buffer or it is NULL, we need to
wait for more data from the backend server.*/
if(readbuf == NULL || GWBUF_LENGTH(readbuf) < 3)
{
skygw_log_write(LD," %lu [%s] Read %s packet with %d bytes. Waiting for %d packets.",
pthread_self(),__FUNCTION__,readbuf?"partial":"empty",
readbuf?GWBUF_LENGTH(readbuf):0,npackets_left);
break;
}
data = GWBUF_DATA(readbuf);
nbytes_left = MYSQL_GET_PACKET_LEN(data)+MYSQL_HEADER_LEN;

View File

@ -2052,7 +2052,6 @@ void init_response_status (
*/
ss_dassert(*nbytes_left > 0);
ss_dassert(*npackets > 0);
ss_dassert(*npackets<128);
}