Commit 58ba5cb5 authored by Robert Ricci's avatar Robert Ricci

Fix bug in last commit - reserved virtual nodes were sometimes being

reported as available.
parent 611bd973
......@@ -56,10 +56,13 @@ if ( $d ) {
my $join= "nodes as a left join reserved as b on a.node_id=b.node_id".
" left join node_types as nt on a.type=nt.type";
my $cols= "a.node_id,a.type,nt.class";
my $cond= "b.node_id is null and a.role='testnode'";
my $cond= "b.node_id is null and ( a.role='testnode'";
if ($args{"includevirt"}) {
$cond .= " or a.role='virtnode' ";
$cond .= " or a.role='virtnode' ) ";
} else {
$cond .= " ) ";
}
my $os = 0;
my $delta = 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