From e5c19d4524d196f6bb2a469834e0968c96a6916f Mon Sep 17 00:00:00 2001 From: Diptanu Choudhury Date: Thu, 31 Mar 2016 18:19:01 -0700 Subject: [PATCH] Using the node in the req to unblock evals --- nomad/fsm.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/nomad/fsm.go b/nomad/fsm.go index abe854a6b..a22fc08c1 100644 --- a/nomad/fsm.go +++ b/nomad/fsm.go @@ -158,13 +158,7 @@ func (n *nomadFSM) applyUpsertNode(buf []byte, index uint64) interface{} { // Unblock evals for the nodes computed node class if it is in a ready // state. if req.Node.Status == structs.NodeStatusReady { - node, err := n.state.NodeByID(req.Node.ID) - if err != nil { - n.logger.Printf("[ERR] nomad.fsm: looking up node %q failed: %v", req.Node.ID, err) - return err - - } - n.blockedEvals.Unblock(node.ComputedClass) + n.blockedEvals.Unblock(req.Node.ComputedClass) } return nil