From ae2de192ef69c436ff7795633959811784f13c17 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Fri, 11 May 2012 18:02:01 +0000 Subject: [PATCH] Have monitorctl induce prefetchcache when it's probable in Postage context git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12640 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/monitoring/monitorctrl.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/monitoring/monitorctrl.pm b/xCAT-server/lib/xcat/monitoring/monitorctrl.pm index 6876ee406..73673befa 100644 --- a/xCAT-server/lib/xcat/monitoring/monitorctrl.pm +++ b/xCAT-server/lib/xcat/monitoring/monitorctrl.pm @@ -880,7 +880,9 @@ sub getNodeMonServerPair { if (@nodes==0) { return $ret; } my $table2=xCAT::Table->new("noderes", -create =>1); - my $tabdata = $table2->getNodesAttribs(\@nodes,['monserver', 'servicenode', 'xcatmaster']); + my %gnopts; + if (scalar (@nodes) == 1) { $gnopts{prefetchcache}=1; } #if only doing one server, it seems probable that this was a Postage type scenario + my $tabdata = $table2->getNodesAttribs(\@nodes,['monserver', 'servicenode', 'xcatmaster'],%gnopts); my $sitemaster=xCAT::Utils->get_site_attribute('master'); foreach my $node (@nodes) { my $monserver;