Merge pull request #5251 from liismn/master
Fix deadlock in runWorker in sched_worker.go
This commit is contained in:
commit
2c9f4ad5ad
1
extern/sector-storage/sched_worker.go
vendored
1
extern/sector-storage/sched_worker.go
vendored
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user