Skip to content

Commit

Permalink
taintedNodes: revert unintentional delete
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekStrickland committed Feb 14, 2022
1 parent c7bbf74 commit 4ea42c6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scheduler/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,10 @@ func progressMade(result *structs.PlanResult) bool {
func taintedNodes(state State, allocs []*structs.Allocation) (map[string]*structs.Node, error) {
out := make(map[string]*structs.Node)
for _, alloc := range allocs {
if _, ok := out[alloc.NodeID]; ok {
continue
}

ws := memdb.NewWatchSet()
node, err := state.NodeByID(ws, alloc.NodeID)
if err != nil {
Expand Down

0 comments on commit 4ea42c6

Please sign in to comment.