Commit 5b376682 authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Mark a node down by scheduling a next reservation. This fixes the

VLANS problem and ensures that the node state is cleared by nfree.
parent 272da488
......@@ -364,8 +364,8 @@ sub MarkNodeDown($)
my $query_result =
DBQueryFatal("update reserved set pid='$pid', eid='$eid' ".
"where node_id='$node'");
DBQueryFatal("replace into next_reserve (node_id, pid, eid) ".
"values ('$node', '$pid', '$eid')");
if ($query_result->num_rows < 1) {
DBWarn("WARNING: Could not mark $node down");
Markdown is supported
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