修复开启gtid时,同时开启tsdb后gtid 属性丢失的问题

This commit is contained in:
winger
2018-12-17 16:14:55 +08:00
parent 7c63e81e01
commit bba800eb96

View File

@@ -813,7 +813,9 @@ public class MysqlEventParser extends AbstractMysqlEventParser implements CanalE
}
if (logPosition.getPostion() != null) {
return logPosition.getPostion();
EntryPosition position = logPosition.getPostion();
position.setGtid(endPosition.getGtid());
return position;
} else {
return null;
}