Commit a70a9827 authored by Leigh B. Stoller's avatar Leigh B. Stoller

When marking a node down, set the rsrv_time so that we know when it

happened (in the web page listing).
parent 773ed48b
......@@ -1030,8 +1030,9 @@ sub MarkNodeDown($)
$eid = NODEDEAD_EID;
my $query_result =
DBQueryFatal("replace into next_reserve (node_id, pid, eid) ".
"values ('$node', '$pid', '$eid')");
DBQueryFatal("replace into next_reserve " .
"(node_id, pid, eid, rsrv_time) " .
"values ('$node', '$pid', '$eid', now())");
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