mirror of
https://github.com/alibaba/canal.git
synced 2026-11-04 00:30:15 +08:00
fixed compiler error
This commit is contained in:
@@ -364,6 +364,7 @@ public class LogEventConvert extends AbstractCanalLifeCycle implements BinlogPar
|
|||||||
throw new TableIdNotFoundException("not found tableId:" + event.getTableId());
|
throw new TableIdNotFoundException("not found tableId:" + event.getTableId());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
boolean isHeartBeat = isAliSQLHeartBeat(table.getDbName(), table.getTableName());
|
||||||
boolean isRDSHeartBeat = tableMetaCache.isOnRDS()
|
boolean isRDSHeartBeat = tableMetaCache.isOnRDS()
|
||||||
&& isRDSHeartBeat(table.getDbName(), table.getTableName());
|
&& isRDSHeartBeat(table.getDbName(), table.getTableName());
|
||||||
|
|
||||||
@@ -772,6 +773,10 @@ public class LogEventConvert extends AbstractCanalLifeCycle implements BinlogPar
|
|||||||
return "LONGTEXT".equalsIgnoreCase(columnType) || "MEDIUMTEXT".equalsIgnoreCase(columnType)
|
return "LONGTEXT".equalsIgnoreCase(columnType) || "MEDIUMTEXT".equalsIgnoreCase(columnType)
|
||||||
|| "TEXT".equalsIgnoreCase(columnType) || "TINYTEXT".equalsIgnoreCase(columnType);
|
|| "TEXT".equalsIgnoreCase(columnType) || "TINYTEXT".equalsIgnoreCase(columnType);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private boolean isAliSQLHeartBeat(String schema, String table) {
|
||||||
|
return "test".equalsIgnoreCase(schema) && "heartbeat".equalsIgnoreCase(table);
|
||||||
|
}
|
||||||
|
|
||||||
private boolean isRDSHeartBeat(String schema, String table) {
|
private boolean isRDSHeartBeat(String schema, String table) {
|
||||||
return "mysql".equalsIgnoreCase(schema) && "ha_health_check".equalsIgnoreCase(table);
|
return "mysql".equalsIgnoreCase(schema) && "ha_health_check".equalsIgnoreCase(table);
|
||||||
|
|||||||
Reference in New Issue
Block a user