performace tuning for monitorctrl.pm

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2971 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
linggao 2009-03-24 19:29:45 +00:00
parent fa64f6765e
commit 0cfb917de2

View File

@ -848,6 +848,7 @@ sub getNodeMonServerPair {
my $table2=xCAT::Table->new("noderes", -create =>1);
my $tabdata = $table2->getNodesAttribs(\@nodes,['monserver', 'servicenode', 'xcatmaster']);
my $sitemaster=xCAT::Utils->get_site_attribute('master');
foreach my $node (@nodes) {
my $monserver;
my $monmaster;
@ -865,7 +866,7 @@ sub getNodeMonServerPair {
if ($tmp2->{servicenode}) { $monserver=$tmp2->{servicenode}; }
if ($tmp2->{xcatmaster}) { $monmaster=$tmp2->{xcatmaster}; }
if (!$monserver) { $monserver="noservicenode"; }
if (!$monmaster) { $monmaster=xCAT::Utils->get_site_attribute('master'); }
if (!$monmaster) { $monmaster=$sitemaster; }
$pairs="$monserver:$monmaster";
}
#print "node=$node, pairs=$pairs\n";