Skip to content

Commit

Permalink
fix(dlm): target database id is null in task framework mode (#2676)
Browse files Browse the repository at this point in the history
  • Loading branch information
guowl3 authored Jun 6, 2024
1 parent 656b30c commit 22889bf
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,9 @@ private void executeInTaskFramework(JobExecutionContext context) {
databaseService.findDataSourceForConnectById(dataDeleteParameters.getDatabaseId())));
parameters
.setTargetDs(DataSourceInfoMapper.toDataSourceInfo(
databaseService.findDataSourceForConnectById(dataDeleteParameters.getTargetDatabaseId())));
databaseService.findDataSourceForConnectById(dataDeleteParameters.getTargetDatabaseId() == null
? dataDeleteParameters.getDatabaseId()
: dataDeleteParameters.getTargetDatabaseId())));
parameters.getSourceDs().setQueryTimeout(dataDeleteParameters.getQueryTimeout());
parameters.getTargetDs().setQueryTimeout(dataDeleteParameters.getQueryTimeout());
parameters.getSourceDs().setDatabaseName(dataDeleteParameters.getDatabaseName());
Expand Down

0 comments on commit 22889bf

Please sign in to comment.