Added logging for safe event and current event mismatch

If the position being currently processed is not the current safe event,
a log message is written.
This commit is contained in:
Markus Makela 2016-04-05 16:57:39 +03:00
parent ed9356562c
commit 0ce48474eb

View File

@ -1542,6 +1542,16 @@ blr_handle_binlog_record(ROUTER_INSTANCE *router, GWBUF *pkt)
{
router->current_safe_event = new_hdr.next_pos;
}
else
{
MXS_ERROR("Current safe event (%lu) does"
" not point at the event we "
"just sent (%llu) from binlog file %s. "
"Last commit at %lu, last write at %lu.",
router->current_safe_event, pos,
router->binlog_name, router->last_safe_pos,
router->last_written);
}
pos = new_hdr.next_pos;