"getnodetype performance improvement": change getnodetype related code.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11554 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
42bf1d30b7
commit
2d8be7cbb3
@ -271,6 +271,7 @@ sub noderange_validate {
|
||||
###########################################
|
||||
# Group nodes
|
||||
###########################################
|
||||
my $mytypehash = xCAT::DBobjUtils->getnodetype($noderange, "ppc");
|
||||
foreach my $node ( @$noderange ) {
|
||||
my $type = undef;
|
||||
#my $sitetab = xCAT::Table->new( 'nodetype' );
|
||||
@ -280,7 +281,7 @@ sub noderange_validate {
|
||||
# $type = $ent->{nodetype};
|
||||
# }
|
||||
#}
|
||||
$type = xCAT::DBobjUtils->getnodetype($node);
|
||||
$type = $$mytypehash{$node};
|
||||
#print "type:$type\n";
|
||||
if( $type =~/(fsp|lpar|cec)/) {
|
||||
$f1 = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user