Removed messages about incomplete transaction events

The message is logged when a DDL statement is executed. It should not be
logged if trx_safe is on since the current_safe_event should always point
at the event we are sending. The current_safe_event is set to the wrong value
which causes this message to be logged.

Due to the false positives caused by this, the message is removed.
This commit is contained in:
Markus Makela 2016-04-07 12:51:38 +03:00
parent bb94ffb9ea
commit fe84f9599b

View File

@ -1931,13 +1931,6 @@ blr_distribute_binlog_record(ROUTER_INSTANCE *router, REP_HEADER *hdr, uint8_t *
(hdr->event_type == ROTATE_EVENT &&
strcmp(slave->binlogfile, router->prevbinlog))))
{
if (router->trx_safe)
{
MXS_ERROR("Slave %s:%d, server ID %u: Sending event from an "
"incomplete transaction from file %s@%u.",
slave->dcb->remote, ntohs((slave->dcb->ipv4).sin_port),
slave->serverid, slave->binlogfile, slave->binlog_pos);
}
/**
* Transaction safety is off or there are no pending transactions
*/