Better comment

This commit is contained in:
Alex Dadgar 2017-07-20 12:31:08 -07:00
parent 248315a2d9
commit 184bfd4836
1 changed files with 2 additions and 1 deletions

View File

@ -455,7 +455,8 @@ func (s *GenericScheduler) computeJobAllocs() error {
return s.computePlacements(destructive, place)
}
// computePlacements computes placements for allocations
// computePlacements computes placements for allocations. It is given the set of
// destructive updates to place and the set of new placements to place.
func (s *GenericScheduler) computePlacements(destructive, place []placementResult) error {
// Get the base nodes
nodes, byDC, err := readyNodesInDCs(s.state, s.job.Datacenters)