mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-31 19:32:31 +00:00 
			
		
		
		
	"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:
		| @@ -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, $_); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user