Commit fafb25b8 authored by Leigh Stoller's avatar Leigh Stoller

Update last_report in the node_activity table, at the same time

we update last_ext_act, since this is how idle determines staleness.
Not sure this is the best approach though.
parent b3c13417
......@@ -261,7 +261,9 @@ if (!$error && (!$noalloc || $partial) && @nodes) {
if ($debug);
# It isn't an error if this fails...
DBQueryWarn("update node_activity set last_ext_act=now() where ".
DBQueryWarn("update node_activity set ".
" last_ext_act=now(), last_report=now() ".
"where ".
join(" or ",
map("node_id='" . $_->node_id() . "'", @nodes)));
......
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