fix bug : full ddl sqls should not assign to extra field but data field

This commit is contained in:
ziyang.lb
2024-05-24 17:53:55 +08:00
parent 05562f1dfc
commit a28806311a

View File

@@ -364,7 +364,7 @@ public class DatabaseTableMeta implements TableMetaTSDB {
snapshotDO.setBinlogOffest(position.getPosition()); snapshotDO.setBinlogOffest(position.getPosition());
snapshotDO.setBinlogMasterId(String.valueOf(position.getServerId())); snapshotDO.setBinlogMasterId(String.valueOf(position.getServerId()));
snapshotDO.setBinlogTimestamp(position.getTimestamp()); snapshotDO.setBinlogTimestamp(position.getTimestamp());
snapshotDO.setExtra(JSON.toJSONString(schemaDdls)); snapshotDO.setData(JSON.toJSONString(schemaDdls));
try { try {
metaSnapshotDAO.insert(snapshotDO); metaSnapshotDAO.insert(snapshotDO);
} catch (Throwable e) { } catch (Throwable e) {