Addition of checksum handling in COM_BINLOG_DUMP

This commit is contained in:
Mark Riddoch
2015-02-05 09:15:45 +00:00
parent 07536611d3
commit b9f36d6489
2 changed files with 6 additions and 0 deletions

View File

@ -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)