MXS-1545: handling of slave file EOF refactoring

MXS-1545: handling of slave file EOF refactoring.

Some slave/router state are now checked before any WARN/ERROR messages
about slave file EOF.

The missing “next_file” is always logged with warn.
This commit is contained in:
MassimilianoPinto
2017-12-01 14:02:02 +01:00
parent d4c0d74ab4
commit 574af7762d
4 changed files with 484 additions and 137 deletions

View File

@ -1299,11 +1299,11 @@ blr_handle_binlog_record(ROUTER_INSTANCE *router, GWBUF *pkt)
}
/**
* Check Event Type limit:
* If supported, gather statistics about
* the replication event types
* else stop replication from master
*/
* Check Event Type limit:
* If supported, gather statistics about
* the replication event types
* else stop replication from master
*/
int event_limit = router->mariadb10_compat ?
MAX_EVENT_TYPE_MARIADB10 : MAX_EVENT_TYPE;
@ -3619,4 +3619,4 @@ void blr_set_checksum(ROUTER_INSTANCE *inst, GWBUF *buf)
MXS_FREE(val);
}
}
}
}