From 05101903d2a23fe1e8530cd3289734be34008c56 Mon Sep 17 00:00:00 2001 From: yinle Date: Fri, 10 Feb 2012 07:35:56 +0000 Subject: [PATCH] "getnodetype performance improvement": change getnodetype related code. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11539 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/conserver.pm | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/conserver.pm b/xCAT-server/lib/xcat/plugins/conserver.pm index 3b0a0d8b8..9e41a96a6 100644 --- a/xCAT-server/lib/xcat/plugins/conserver.pm +++ b/xCAT-server/lib/xcat/plugins/conserver.pm @@ -6,7 +6,6 @@ use xCAT::Table; use xCAT::Utils; use Getopt::Long; use Sys::Hostname; -use xCAT::DBobjUtils; use strict; use Data::Dumper; @@ -377,9 +376,8 @@ sub makeconservercf { if ( defined($typetab)) { my @ents = $typetab->getAllNodeAttribs([qw(node nodetype)]); - foreach my $tn (@ents) { - #$type{$_->{node}}=$_->{nodetype}; - $type{$tn->{node}}= xCAT::DBobjUtils->getnodetype($tn->{node}); + foreach (@ents) { + $type{$_->{node}}=$_->{nodetype}; } } foreach (@cfgents) {