From f1f557b01185b6b7f5d67eef171ff2406d7138f1 Mon Sep 17 00:00:00 2001 From: ellen56 Date: Tue, 31 Mar 2009 02:55:51 +0000 Subject: [PATCH] setting mgt&cons attributes at same time for better performance git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3047 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/PPCdb.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/perl-xCAT/xCAT/PPCdb.pm b/perl-xCAT/xCAT/PPCdb.pm index 4bd6ff5bc..42e002589 100644 --- a/perl-xCAT/xCAT/PPCdb.pm +++ b/perl-xCAT/xCAT/PPCdb.pm @@ -105,9 +105,10 @@ sub add_ppc { ########################### # Update nodehm table ########################### - $db{nodehm}->setNodeAttribs( $name, {mgt=>$hwtype} ); if($type =~ /^lpar$/){ - $db{nodehm}->setNodeAttribs( $name, {cons=>$hwtype} ); + $db{nodehm}->setNodeAttribs( $name, {mgt=>$hwtype,cons=>$hwtype} ); + } else { + $db{nodehm}->setNodeAttribs( $name, {mgt=>$hwtype} ); } $db{nodehm}{commit} = 1; }