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
This commit is contained in:
ellen56 2009-03-31 02:55:51 +00:00
parent 757cd855b4
commit f1f557b011

View File

@ -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;
}