"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:
parent
c80bdf5aad
commit
8e4ef84b0c
@ -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, $_);
|
||||
|
Loading…
Reference in New Issue
Block a user