2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-13 01:40:26 +00:00

Fix 3722, move setNodesAttribute out of the node loop

This commit is contained in:
Bin Xu
2017-08-18 17:55:28 +08:00
parent f9cc8f71b9
commit 1db1308eb3

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)]);