Dump queue contents on unexpectedly NULL buffer
When the query queue does not contain a complete packet (i.e. modutil_get_next_MySQL_packet return NULL), an informative dump of how many bytes and what is stored is logged.
This commit is contained in:
@ -403,10 +403,11 @@ extern void dprintAllBuffers(void *pdcb);
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Debug function for dumping buffer contents to INFO log
|
||||
* Debug function for dumping buffer contents to log
|
||||
*
|
||||
* @param buffer Buffer to dump
|
||||
* @param buffer Buffer to dump
|
||||
* @param log_level Log priority where the message is written
|
||||
*/
|
||||
void gwbuf_hexdump(GWBUF* buffer);
|
||||
void gwbuf_hexdump(GWBUF* buffer, int log_level);
|
||||
|
||||
MXS_END_DECLS
|
||||
|
Reference in New Issue
Block a user