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

Alter last revision slightly to make it easier to use in my devel tree.

parent 3c5d5805
......@@ -109,13 +109,16 @@ else {
# from allocating a dead virtual node to an experiment.
# This is especially hacky. We need another mechanism for this.
#
my $pc601hack_only = "a.type='pc601' and";
my $pc601hack_none = "a.type!='pc601' and";
$result =
DBQueryFatal("select a.node_id,a.type from nodes as a ".
"left join reserved as b on a.node_id=b.node_id ".
"left join reserved as m on a.phys_nodeid=m.node_id ".
"left join nodes as n on a.phys_nodeid=n.node_id ".
"where b.node_id is null and ".
" a.type!='pc601' and ".
" $pc601hack_none ".
" (a.role='testnode' or ".
" (a.role='virtnode' and n.status='up' and ".
" (m.node_id is null or ".
......
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