mirror of
https://github.com/alibaba/canal.git
synced 2026-11-04 00:30:15 +08:00
支持通过GTID同步binlog
This commit is contained in:
@@ -54,6 +54,9 @@ public class CanalEventUtils {
|
||||
// add serverId at 2016-06-28
|
||||
position.setServerId(event.getEntry().getHeader().getServerId());
|
||||
|
||||
// add gtid
|
||||
position.setGtid(event.getEntry().getHeader().getGtid());
|
||||
|
||||
LogPosition logPosition = new LogPosition();
|
||||
logPosition.setPostion(position);
|
||||
logPosition.setIdentity(event.getLogIdentity());
|
||||
|
||||
Reference in New Issue
Block a user