From c03992d02acdbdea0223fefa18cd727c01962940 Mon Sep 17 00:00:00 2001 From: Danny Auble <da@schedmd.com> Date: Tue, 25 Oct 2011 15:24:35 -0700 Subject: [PATCH] BGQ - move to new - faster getMidplaneNodes instead of the slower getNodes --- .../select/bluegene/bl_bgq/bridge_status.cc | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/src/plugins/select/bluegene/bl_bgq/bridge_status.cc b/src/plugins/select/bluegene/bl_bgq/bridge_status.cc index db30d1ca2a4..56f1134ad28 100644 --- a/src/plugins/select/bluegene/bl_bgq/bridge_status.cc +++ b/src/plugins/select/bluegene/bl_bgq/bridge_status.cc @@ -773,6 +773,13 @@ static void _handle_midplane_update(ComputeHardware::ConstPtr bgq, _handle_bad_midplane(ba_mp->coord_str, mp_ptr->getState()); /* no reason to continue */ return; + } else { + Node::ConstPtrs vec = getMidplaneNodes(mp_ptr->getLocation()); + BOOST_FOREACH(const Node::ConstPtr& cnode_ptr, vec) { + _handle_node_change(ba_mp, + cnode_ptr->getLocation(), + cnode_ptr->getState()); + } } for (i=0; i<16; i++) { @@ -787,15 +794,6 @@ static void _handle_midplane_update(ComputeHardware::ConstPtr bgq, _handle_bad_nodeboard( nodeboard->getLocation().substr(7,3).c_str(), ba_mp->coord_str, nodeboard->getState()); - else { - Node::ConstPtrs vec = - getNodes(nodeboard->getLocation()); - BOOST_FOREACH(const Node::ConstPtr& cnode_ptr, vec) { - _handle_node_change(ba_mp, - cnode_ptr->getLocation(), - cnode_ptr->getState()); - } - } } for (dim=Dimension::A; dim<=Dimension::D; dim++) { -- GitLab