支持通过GTID同步binlog

This commit is contained in:
hiwjd
2018-05-02 15:28:11 +08:00
parent f46133d116
commit 21f3f8c973
22 changed files with 13479 additions and 12615 deletions

View File

@@ -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());