Skip to content

Commit

Permalink
fix: atomic
Browse files Browse the repository at this point in the history
  • Loading branch information
jerrylisl authored and siliang.li committed Jan 11, 2022
1 parent 8e627ef commit 9d6f538
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dm/dm/master/scheduler/scheduler.go
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ func (s *Scheduler) AddSourceCfgWithWorker(cfg *config.SourceConfig, workerName
s.mu.Lock()
defer s.mu.Unlock()

if !s.started {
if !s.started.Load() {
return terror.ErrSchedulerNotStarted.Generate()
}

Expand Down

0 comments on commit 9d6f538

Please sign in to comment.