fixed issue #105 , seek method add format eventType parse

This commit is contained in:
agapple
2014-12-17 22:08:36 +08:00
parent 13bf7c85a0
commit ac4970ef3a

View File

@@ -84,6 +84,7 @@ public class MysqlConnection implements ErosaConnection {
fetcher.start(connector.getChannel()); fetcher.start(connector.getChannel());
LogDecoder decoder = new LogDecoder(); LogDecoder decoder = new LogDecoder();
decoder.handle(LogEvent.ROTATE_EVENT); decoder.handle(LogEvent.ROTATE_EVENT);
decoder.handle(LogEvent.FORMAT_DESCRIPTION_EVENT);
decoder.handle(LogEvent.QUERY_EVENT); decoder.handle(LogEvent.QUERY_EVENT);
decoder.handle(LogEvent.XID_EVENT); decoder.handle(LogEvent.XID_EVENT);
LogContext context = new LogContext(); LogContext context = new LogContext();
@@ -202,7 +203,6 @@ public class MysqlConnection implements ErosaConnection {
logger.warn(ExceptionUtils.getFullStackTrace(e)); logger.warn(ExceptionUtils.getFullStackTrace(e));
} }
try { try {
// mariadb针对特殊的类型,需要设置session变量 // mariadb针对特殊的类型,需要设置session变量
update("SET @mariadb_slave_capability='" + LogEvent.MARIA_SLAVE_CAPABILITY_MINE + "'"); update("SET @mariadb_slave_capability='" + LogEvent.MARIA_SLAVE_CAPABILITY_MINE + "'");