There's no need to set moveRequestCycle and do broadcast twice.

This commit is contained in:
lixiang 2020-04-28 00:43:58 +08:00
parent 75aede28e1
commit 5844bc3b9f

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