Merge pull request #85257 from yutedz/queueset-robin-idx

Correct the checking of robinIndex
This commit is contained in:
Kubernetes Prow Robot 2019-11-14 16:38:50 -08:00 committed by GitHub
commit 8dffc8db4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -568,7 +568,7 @@ func (qs *queueSet) finishRequestLocked(r *request) {
// decrement here to maintain the invariant that (qs.robinIndex+1) % numQueues
// is the index of the next queue after the one last dispatched from
if qs.robinIndex >= -r.Queue.Index {
if qs.robinIndex >= r.Queue.Index {
qs.robinIndex--
}