Addition of checksum handling in COM_BINLOG_DUMP
This commit is contained in:
@ -354,6 +354,10 @@ int n;
|
||||
unsigned long filelen = 0;
|
||||
struct stat statb;
|
||||
|
||||
if (!file)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
if (fstat(file->fd, &statb) == 0)
|
||||
filelen = statb.st_size;
|
||||
if (pos >= filelen)
|
||||
|
@ -1079,6 +1079,8 @@ uint32_t chksum;
|
||||
ptr = GWBUF_DATA(queue);
|
||||
len = extract_field(ptr, 24);
|
||||
binlognamelen = len - 11;
|
||||
if (! slave->nocrc)
|
||||
binlognamelen -= 4;
|
||||
ptr += 4; // Skip length and sequence number
|
||||
if (*ptr++ != COM_BINLOG_DUMP)
|
||||
{
|
||||
|
Reference in New Issue
Block a user