Skip to content

Commit 8dffc8d

Browse files
authored
Merge pull request kubernetes#85257 from yutedz/queueset-robin-idx
Correct the checking of robinIndex
2 parents 9edcaf7 + 2bdd379 commit 8dffc8d

File tree

1 file changed

+1
-1
lines changed
  • staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/queueset

1 file changed

+1
-1
lines changed

staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/queueset/queueset.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ func (qs *queueSet) finishRequestLocked(r *request) {
568568

569569
// decrement here to maintain the invariant that (qs.robinIndex+1) % numQueues
570570
// is the index of the next queue after the one last dispatched from
571-
if qs.robinIndex >= -r.Queue.Index {
571+
if qs.robinIndex >= r.Queue.Index {
572572
qs.robinIndex--
573573
}
574574

0 commit comments

Comments
 (0)