Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
58ba5cb5
Commit
58ba5cb5
authored
Sep 18, 2002
by
Robert Ricci
Browse files
Fix bug in last commit - reserved virtual nodes were sometimes being
reported as available.
parent
611bd973
Changes
1
Hide whitespace changes
Inline
Side-by-side
db/avail.in
View file @
58ba5cb5
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment