diff --git a/server/modules/include/blr.h b/server/modules/include/blr.h index d41e4cac4..23add0bba 100644 --- a/server/modules/include/blr.h +++ b/server/modules/include/blr.h @@ -184,7 +184,7 @@ #define SLAVE_POS_READ_OK 0x00 #define SLAVE_POS_READ_ERR 0xff #define SLAVE_POS_READ_UNSAFE 0xfe -#define SLAVE_POS_FSTAT_ERR 0xfd +#define SLAVE_POS_BAD_FD 0xfd /** * Some useful macros for examining the MySQL Response packets diff --git a/server/modules/routing/binlog/blr_file.c b/server/modules/routing/binlog/blr_file.c index a1f6fedd9..c882a0466 100644 --- a/server/modules/routing/binlog/blr_file.c +++ b/server/modules/routing/binlog/blr_file.c @@ -422,7 +422,7 @@ struct stat statb; filelen = statb.st_size; else { if (file->fd == -1) { - hdr->ok = SLAVE_POS_FSTAT_ERR; + hdr->ok = SLAVE_POS_BAD_FD; snprintf(errmsg, BINLOG_ERROR_MSG_LEN, "blr_read_binlog called with invalid file->fd, pos %lu", pos); spinlock_release(&file->lock); return NULL; diff --git a/server/modules/routing/binlog/blr_slave.c b/server/modules/routing/binlog/blr_slave.c index 69de58665..35b44f1d5 100644 --- a/server/modules/routing/binlog/blr_slave.c +++ b/server/modules/routing/binlog/blr_slave.c @@ -2024,7 +2024,7 @@ char read_errmsg[BINLOG_ERROR_MSG_LEN+1]; if (record == NULL) { slave->stats.n_failed_read++; - if (hdr.ok == SLAVE_POS_FSTAT_ERR) { + if (hdr.ok == SLAVE_POS_BAD_FD) { MXS_ERROR("%s Slave %s:%i, server-id %d, binlog '%s', %s", router->service->name, slave->dcb->remote,