From 8e4ef84b0cfa3fd252101a68d5bf8afe064037e1 Mon Sep 17 00:00:00 2001 From: yinle Date: Fri, 10 Feb 2012 10:50:38 +0000 Subject: [PATCH] "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 --- xCAT-UI/xcat/plugins/web.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xCAT-UI/xcat/plugins/web.pm b/xCAT-UI/xcat/plugins/web.pm index cbe8cb2f5..066298b2a 100644 --- a/xCAT-UI/xcat/plugins/web.pm +++ b/xCAT-UI/xcat/plugins/web.pm @@ -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, $_);