Skip to content

Commit

Permalink
Merge pull request #5251 from liismn/master
Browse files Browse the repository at this point in the history
Fix deadlock in runWorker in sched_worker.go
  • Loading branch information
magik6k authored Jan 5, 2021
2 parents 4f9fcd2 + e9cc697 commit 2c9f4ad
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions extern/sector-storage/sched_worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ func (sh *scheduler) runWorker(ctx context.Context, w Worker) error {
log.Warnw("duplicated worker added", "id", wid)

// this is ok, we're already handling this worker in a different goroutine
sh.workersLk.Unlock()
return nil
}

Expand Down

0 comments on commit 2c9f4ad

Please sign in to comment.