Commit 7f0157b2 authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Fix mistake in MarkNodeDown.

parent 1e222a0e
...@@ -1040,8 +1040,8 @@ sub MarkNodeDown($) ...@@ -1040,8 +1040,8 @@ sub MarkNodeDown($)
my $query_result = my $query_result =
DBQueryFatal("replace into next_reserve " . DBQueryFatal("replace into next_reserve " .
"(node_id, pid, eid, rsrv_time) " . "(node_id, pid, eid) " .
"values ('$node', '$pid', '$eid', now())"); "values ('$node', '$pid', '$eid')");
if ($query_result->num_rows < 1) { if ($query_result->num_rows < 1) {
DBWarn("WARNING: Could not mark $node down"); DBWarn("WARNING: Could not mark $node down");
...@@ -1545,7 +1545,7 @@ sub TBIsNodeRemote($) ...@@ -1545,7 +1545,7 @@ sub TBIsNodeRemote($)
my ($nodeid) = @_; my ($nodeid) = @_;
my $query_result = my $query_result =
DBQueryFatal("select class from node_types as t ". DBQueryFatal("select isremotenode from node_types as t ".
"left join nodes as n on t.type=n.type ". "left join nodes as n on t.type=n.type ".
"where n.node_id='$nodeid'"); "where n.node_id='$nodeid'");
...@@ -1554,10 +1554,7 @@ sub TBIsNodeRemote($) ...@@ -1554,10 +1554,7 @@ sub TBIsNodeRemote($)
} }
my @row = $query_result->fetchrow_array(); my @row = $query_result->fetchrow_array();
if ($row[0] =~ /pcRemote/i) { return($row[0]);
return 1;
}
return 0;
} }
# #
......
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