Skip to content

Commit

Permalink
address comment
Browse files Browse the repository at this point in the history
Signed-off-by: lance6716 <lance6716@gmail.com>
  • Loading branch information
lance6716 committed Nov 25, 2022
1 parent 56dbede commit 0121d7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dm/worker/subtask.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func createRealUnits(cfg *config.SubTaskConfig, etcdClient *clientv3.Client, wor

func newLoadUnit(cfg *config.SubTaskConfig, etcdClient *clientv3.Client, workerName string) unit.Unit {
// tidb-lightning doesn't support column mapping currently
if cfg.ImportMode == config.LoadModeLoader || len(cfg.ColumnMappingRules) > 0 {
if !cfg.NeedUseLightning() || len(cfg.ColumnMappingRules) > 0 {
return loader.NewLoader(cfg, etcdClient, workerName)
}
return loader.NewLightning(cfg, etcdClient, workerName)
Expand Down

0 comments on commit 0121d7e

Please sign in to comment.