fixed event

This commit is contained in:
agapple
2018-11-13 13:41:19 +08:00
parent c4947cad3c
commit 03a9522191

View File

@@ -651,7 +651,7 @@ public class MysqlEventParser extends AbstractMysqlEventParser implements CanalE
throw new CanalParseException("command : 'show master status' has an error! pls check. you need (at least one of) the SUPER,REPLICATION CLIENT privilege(s) for this operation"); throw new CanalParseException("command : 'show master status' has an error! pls check. you need (at least one of) the SUPER,REPLICATION CLIENT privilege(s) for this operation");
} }
EntryPosition endPosition = new EntryPosition(fields.get(0), Long.valueOf(fields.get(1))); EntryPosition endPosition = new EntryPosition(fields.get(0), Long.valueOf(fields.get(1)));
if (isGTIDMode && fields.size() > 4) { if (isGTIDMode() && fields.size() > 4) {
endPosition.setGtid(fields.get(4)); endPosition.setGtid(fields.get(4));
} }
return endPosition; return endPosition;