Log messages fix with slave ip:port and id

Log messages fix with slave ip:port and id
This commit is contained in:
MassimilianoPinto
2015-11-27 09:16:17 +01:00
parent e38334c457
commit ba135c5548
3 changed files with 19 additions and 4 deletions

View File

@ -422,10 +422,9 @@ struct stat statb;
filelen = statb.st_size;
else {
if (file->fd == -1) {
hdr->ok = SLAVE_POS_READ_OK;
hdr->ok = SLAVE_POS_FSTAT_ERR;
snprintf(errmsg, BINLOG_ERROR_MSG_LEN, "blr_read_binlog called with invalid file->fd, pos %lu", pos);
spinlock_release(&file->lock);
MXS_ERROR("Slave has failed fstat %s", errmsg);
return NULL;
}
}