From 05f6ec584262687358374f1c9f39ff943179d2c7 Mon Sep 17 00:00:00 2001 From: yinle Date: Fri, 10 Feb 2012 10:54:27 +0000 Subject: [PATCH] "getnodetype performance improvement": change getnodetype related code. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11551 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/PPCconn.pm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/perl-xCAT/xCAT/PPCconn.pm b/perl-xCAT/xCAT/PPCconn.pm index 20a5cbfe5..79311c1cc 100644 --- a/perl-xCAT/xCAT/PPCconn.pm +++ b/perl-xCAT/xCAT/PPCconn.pm @@ -90,14 +90,13 @@ sub mkhwconn_parse_args my @frame_members = (); if ( $ppctab) { + my $typehash = xCAT::DBobjUtils->getnodetype($nodes, "ppc"); for my $node ( @$nodes) { my $node_parent = undef; my $nodetype = undef; - #my $nodetype_hash = $nodetypetab->getNodeAttribs( $node,[qw(nodetype)]); my $node_parent_hash = $ppctab->getNodeAttribs( $node,[qw(parent)]); - #$nodetype = $nodetype_hash->{nodetype}; - $nodetype = xCAT::DBobjUtils->getnodetype($node); + $nodetype = $$typehash{$node}; $node_parent = $node_parent_hash->{parent}; if ( !$nodetype ) {