fixed binlog seek & aliyun ak/sk

This commit is contained in:
agapple
2018-11-21 13:51:34 +08:00
parent c0bbe530f1
commit 638952fad1
9 changed files with 111 additions and 93 deletions

View File

@@ -747,7 +747,7 @@ public class MysqlEventParser extends AbstractMysqlEventParser implements CanalE
if (justForPositionTimestamp && logPosition.getPostion() == null && event.getWhen() > 0) {
// 初始位点
entryPosition = new EntryPosition(searchBinlogFile,
event.getLogPos(),
event.getLogPos() - event.getEventLen(),
event.getWhen() * 1000,
event.getServerId());
logPosition.setPostion(entryPosition);

View File

@@ -657,7 +657,7 @@ public class LogEventConvert extends AbstractCanalLifeCycle implements BinlogPar
+ tableMeta.getFullName() + ", db fieldMeta : "
+ fieldMeta.toString() + " , binlog fieldMeta : " + info.toString()
+ " , on : " + event.getHeader().getLogFileName() + ":"
+ event.getHeader().getLogPos());
+ (event.getHeader().getLogPos() - event.getHeader().getEventLen()));
}
}