20bcdeb8b1
It was possible to get into a situation where successfulPieces = es.RequiredCount(), errorCount < minFailures, and inProgress == 0 (when the succeeding gets all completed before the failures), whereupon the last goroutine in the limiter would sit and wait forever for another goroutine to finish. This change corrects the handling of that situation. As an aside, this is really pretty confusing code and we should think about redoing the whole function. Change-Id: Ifa3d3ad92bc755e563fd06b2aa01ef6147075a69 |
||
---|---|---|
.. | ||
checker | ||
queue | ||
repairer | ||
priority_test.go | ||
priority.go | ||
repair_test.go | ||
repair.go |