Merge pull request #90542 from lixiang233/master

There's no need to set moveRequestCycle and do broadcast twice.
This commit is contained in:
Kubernetes Prow Robot 2020-04-28 12:58:25 -07:00 committed by GitHub
commit 4099ad6e0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -499,8 +499,6 @@ func (p *PriorityQueue) MoveAllToActiveOrBackoffQueue(event string) {
unschedulablePods = append(unschedulablePods, pInfo)
}
p.movePodsToActiveOrBackoffQueue(unschedulablePods, event)
p.moveRequestCycle = p.schedulingCycle
p.cond.Broadcast()
}
// NOTE: this function assumes lock has been acquired in caller