2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-03 03:50:08 +00:00

Merge pull request #3723 from robin2008/destiny-3722

Fix 3722, move setNodesAttribute out of the node loop
This commit is contained in:
chenglch 2017-08-18 22:12:27 +08:00 committed by GitHub
commit 786901ac88

View File

@ -655,8 +655,8 @@ sub setdestiny {
if ($reststates) {
$updates->{$_}->{'currchain'} = $reststates;
}
$chaintab->setNodesAttribs($updates);
}
$chaintab->setNodesAttribs($updates);
return getdestiny($flag + 1);
}
@ -784,6 +784,7 @@ sub getdestiny {
@nodes = ($node);
}
my $node;
xCAT::MsgUtils->trace(0, "d", "destiny->process_request: getdestiny...");
$restab = xCAT::Table->new('noderes');
my $chaintab = xCAT::Table->new('chain');
my $chainents = $chaintab->getNodesAttribs(\@nodes, [qw(currstate chain)]);