mirror of
https://github.com/alibaba/canal.git
synced 2026-11-04 00:30:15 +08:00
let tsdbSnapshotInterval config work correctly
This commit is contained in:
@@ -304,7 +304,6 @@ public class CanalInstanceWithManager extends AbstractCanalInstance {
|
||||
}
|
||||
boolean tsdbEnable = BooleanUtils.toBoolean(parameters.getTsdbEnable());
|
||||
if (tsdbEnable) {
|
||||
mysqlEventParser.setEnableTsdb(tsdbEnable);
|
||||
mysqlEventParser.setTableMetaTSDBFactory(new DefaultTableMetaTSDBFactory() {
|
||||
|
||||
@Override
|
||||
@@ -327,6 +326,7 @@ public class CanalInstanceWithManager extends AbstractCanalInstance {
|
||||
}
|
||||
}
|
||||
});
|
||||
mysqlEventParser.setEnableTsdb(tsdbEnable);
|
||||
}
|
||||
eventParser = mysqlEventParser;
|
||||
} else if (type.isLocalBinlog()) {
|
||||
|
||||
Reference in New Issue
Block a user