mirror of
https://github.com/alibaba/canal.git
synced 2026-11-04 00:30:15 +08:00
修复开启gtid时,同时开启tsdb后gtid 属性丢失的问题
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user