Commit 073d0da0 authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Fix up Rob's last revision. Move into reloadpending, and let reload

daemon take care of it.
parent 312befe6
......@@ -360,18 +360,14 @@ foreach my $n (@freed_nodes) {
# Make sure we don't schedule a reload if the node is coming out of
# the reloading or reloadpending experimenets.
if (!(($pid eq $reloadpid) && (($eid eq $reloadeid) ||
($eid eq $pendingeid)))) {
if (system("$sched_reload $n") != 0) {
print STDERR "WARNING: $sched_reload $n failed!\n";
if (!(($pid eq $reloadpid) &&
(($eid eq $reloadeid) || ($eid eq $pendingeid)))) {
DBQueryWarn("update reserved set ".
"pid='$reloadpid',eid='$pendingeid' ".
"where node_id='$n'") || $error++;
DBQueryWarn("replace into last_reservation values ('$n', '$pid')");
print "Releasing node '$n' ... ";
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment