Have monitorctl induce prefetchcache when it's probable in Postage context

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.7@12642 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2012-05-11 18:43:08 +00:00
parent 2ce7244782
commit 2ff852b466

View File

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