From 440bc049c02a2645369d9b2ed791b2a4f675805a Mon Sep 17 00:00:00 2001 From: Markus Makela Date: Mon, 11 Apr 2016 10:46:40 +0300 Subject: [PATCH] Added more information to binlogrouter error messages The name of the binlog file was added to the log message where a slave is behind the master but the same file is used. This makes debugging the problem a bit easier. --- server/modules/routing/binlog/blr_master.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/server/modules/routing/binlog/blr_master.c b/server/modules/routing/binlog/blr_master.c index d19991cf1..400e65925 100644 --- a/server/modules/routing/binlog/blr_master.c +++ b/server/modules/routing/binlog/blr_master.c @@ -1956,9 +1956,10 @@ blr_distribute_binlog_record(ROUTER_INSTANCE *router, REP_HEADER *hdr, uint8_t * else { MXS_ERROR("Slave %s:%d server ID %d is at position %u when " - "it should be at %u.", slave->dcb->remote, + "it should be at %u. Binlog file is '%s'.", slave->dcb->remote, ntohs((slave->dcb->ipv4).sin_port), slave->serverid, - slave->binlog_pos, hdr->next_pos - hdr->event_size); + slave->binlog_pos, hdr->next_pos - hdr->event_size, + slave->binlogfile); } } else if (rotate)