Commit 506d7f04 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Fix to HasVirtualNodes(); must join with the reserved table.

parent b314d660
......@@ -1267,8 +1267,11 @@ sub HasVirtualNodes($)
my $node_id = $self->node_id();
my $query_result =
DBQueryWarn("select node_id from nodes ".
"where phys_nodeid='$node_id' and node_id!=phys_nodeid");
DBQueryWarn("select nodes.node_id from nodes ".
"left join reserved on reserved.node_id=nodes.node_id ".
"where nodes.phys_nodeid='$node_id' and ".
" nodes.node_id!=nodes.phys_nodeid and ".
" reserved.node_id is not null");
return -1
if (!$query_result);
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