Skip to content

Commit

Permalink
fix conflicts with master
Browse files Browse the repository at this point in the history
  • Loading branch information
xwm1992 committed Jul 24, 2024
1 parent c5c2c15 commit 95d4a00
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ private void doLoadWithGtid(DbLoadContext context, CanalSinkConfig sinkConfig, C
List<List<CanalConnectRecord>> totalRows = batch.getBatches();
List<CanalConnectRecord> filteredRows = new ArrayList<>();
for (List<CanalConnectRecord> canalConnectRecords : totalRows) {
canalConnectRecords = filterRecord(canalConnectRecords, sinkConfig);
canalConnectRecords = filterRecord(canalConnectRecords);
if (!CollectionUtils.isEmpty(canalConnectRecords)) {
for (final CanalConnectRecord record : canalConnectRecords) {
boolean filter = interceptor.before(sinkConfig, record);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,8 @@ protected void startEventParserInternal(CanalEventParser parser, boolean isGroup
return instance;
}
});
DatabaseConnection.sourceConfig = sourceConfig.getSourceConnectorConfig();
DatabaseConnection.initSourceConnection();
tableMgr = new RdbTableMgr(sourceConfig.getSourceConnectorConfig(), DatabaseConnection.sourceDataSource);
}

Expand Down

0 comments on commit 95d4a00

Please sign in to comment.