Log message updates
Log message updates
This commit is contained in:
@ -912,9 +912,9 @@ ROUTER_SLAVE *slave = (ROUTER_SLAVE *)router_session;
|
||||
if (slave->state > 0) {
|
||||
LOGIF(LM, (skygw_log_write_flush(
|
||||
LOGFILE_MESSAGE,
|
||||
"%s: Slave %s, server id %d, disconnected after %ld seconds. "
|
||||
"%s: Slave %s:%d, server id %d, disconnected after %ld seconds. "
|
||||
"%d SQL commands, %d events sent (%lu bytes), binlog '%s', last position %lu",
|
||||
router->service->name, slave->dcb->remote,
|
||||
router->service->name, slave->dcb->remote, slave->port,
|
||||
slave->serverid,
|
||||
time(0) - slave->connect_time,
|
||||
slave->stats.n_queries,
|
||||
|
@ -459,9 +459,10 @@ struct stat statb;
|
||||
if (pos > router->binlog_position && !router->rotating)
|
||||
{
|
||||
/* Unsafe position, slave will be disconnected by the calling routine */
|
||||
snprintf(errmsg, BINLOG_ERROR_MSG_LEN, "Requested position %lu is not available. "
|
||||
"Latest safe position %lu, end of binlog '%s' is %lu",
|
||||
pos, router->binlog_position, file->binlogname, router->current_pos);
|
||||
snprintf(errmsg, BINLOG_ERROR_MSG_LEN, "Requested binlog position %lu. Position is unsafe so disconnecting. "
|
||||
"Latest safe position %lu, end of binlog file %lu",
|
||||
pos, router->binlog_position, router->current_pos);
|
||||
|
||||
hdr->ok = SLAVE_POS_READ_UNSAFE;
|
||||
} else {
|
||||
/* accessing last position is ok */
|
||||
|
Reference in New Issue
Block a user