Support non-default binlog filenames

Add support for bin log file names that are shorter than the default.
Handle events per more than 2 packets
This commit is contained in:
Mark Riddoch
2014-06-04 18:37:41 +01:00
parent 4b5f801ff9
commit bb0e6c3858
5 changed files with 99 additions and 20 deletions

View File

@ -262,6 +262,7 @@ GWBUF *
gwbuf_consume(GWBUF *head, unsigned int length)
{
GWBUF *rval = head;
CHK_GWBUF(head);
GWBUF_CONSUME(head, length);
CHK_GWBUF(head);
@ -271,6 +272,9 @@ GWBUF *rval = head;
rval = head->next;
gwbuf_free(head);
}
ss_dassert(rval->end > rval->start);
return rval;
}