Skip to content
This repository has been archived by the owner on Nov 24, 2023. It is now read-only.

Commit

Permalink
master: fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
csuzhangxc committed Oct 16, 2019
1 parent 4c86402 commit abd37fe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dm/master/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -1850,11 +1850,11 @@ func (s *Server) generateSubTask(ctx context.Context, task string) (*config.Task
// get workerID from deploy map by sourceID, refactor this when dynamic add/remove worker supported.
workerIDs := make([]string, 0, len(cfg.MySQLInstances))
for _, inst := range cfg.MySQLInstances {
if workerID, ok := s.cfg.DeployMap[inst.SourceID]; !ok {
workerID, ok := s.cfg.DeployMap[inst.SourceID]
if !ok {
return nil, nil, terror.ErrMasterTaskConfigExtractor.Generatef("%s relevant worker not found", inst.SourceID)
} else {
workerIDs = append(workerIDs, workerID)
}
workerIDs = append(workerIDs, workerID)
}

sourceCfgs, err := s.getWorkerConfigs(ctx, workerIDs)
Expand Down

0 comments on commit abd37fe

Please sign in to comment.