mirror of
https://github.com/alibaba/canal.git
synced 2026-11-04 00:30:15 +08:00
fixed issue #440
This commit is contained in:
@@ -761,14 +761,13 @@ public class MysqlEventParser extends AbstractMysqlEventParser implements CanalE
|
|||||||
Long logposTimestamp = entry.getHeader().getExecuteTime();
|
Long logposTimestamp = entry.getHeader().getExecuteTime();
|
||||||
Long serverId = entry.getHeader().getServerId();
|
Long serverId = entry.getHeader().getServerId();
|
||||||
|
|
||||||
if (CanalEntry.EntryType.TRANSACTIONBEGIN.equals(entry.getEntryType())
|
if (logger.isDebugEnabled()) {
|
||||||
|| CanalEntry.EntryType.TRANSACTIONEND.equals(entry.getEntryType())) {
|
|
||||||
logger.debug("compare exit condition:{},{},{}, startTimestamp={}...", new Object[] {
|
logger.debug("compare exit condition:{},{},{}, startTimestamp={}...", new Object[] {
|
||||||
logfilename, logfileoffset, logposTimestamp, startTimestamp });
|
logfilename, logfileoffset, logposTimestamp, startTimestamp });
|
||||||
// 事务头和尾寻找第一条记录时间戳,如果最小的一条记录都不满足条件,可直接退出
|
}
|
||||||
if (logposTimestamp >= startTimestamp) {
|
// 事务头和尾寻找第一条记录时间戳,如果最小的一条记录都不满足条件,可直接退出
|
||||||
return false;
|
if (logposTimestamp >= startTimestamp) {
|
||||||
}
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (entryPosition == null) {
|
if (entryPosition == null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user