mirror of
https://github.com/alibaba/canal.git
synced 2026-11-04 00:30:15 +08:00
fixed issue #440, enableTsdb
This commit is contained in:
@@ -159,11 +159,12 @@ public abstract class AbstractMysqlEventParser extends AbstractEventParser {
|
|||||||
|
|
||||||
public void setTsdbSpringXml(String tsdbSpringXml) {
|
public void setTsdbSpringXml(String tsdbSpringXml) {
|
||||||
this.tsdbSpringXml = tsdbSpringXml;
|
this.tsdbSpringXml = tsdbSpringXml;
|
||||||
|
if (this.enableTsdb) {
|
||||||
if (tableMetaTSDB == null) {
|
if (tableMetaTSDB == null) {
|
||||||
// 初始化
|
// 初始化
|
||||||
tableMetaTSDB = TableMetaTSDBBuilder.build(destination, tsdbSpringXml);
|
tableMetaTSDB = TableMetaTSDBBuilder.build(destination, tsdbSpringXml);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user