"getnodetype performance improvement": change getnodetype related code.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11550 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
yinle 2012-02-10 10:50:38 +00:00
parent c80bdf5aad
commit 8e4ef84b0c

View File

@ -2073,10 +2073,11 @@ sub web_graphinfo{
my $ppctab = xCAT::Table->new('ppc');
#nodetype, parent
$result = $ppctab->getNodesAttribs(\@parray, ['parent']);
my $typehash = xCAT::DBobjUtils->getnodetype(\@parray);
foreach(@parray){
my $value = $result->{$_};
if ($value->[0]){
$phash{$_} = xCAT::DBobjUtils->getnodetype($_) . ':' . $value->[0]->{'parent'} . ':';
$phash{$_} = $$typehash{$_} . ':' . $value->[0]->{'parent'} . ':';
}
else{
push(@missinfoarray, $_);