Skip to content
GitLab
Menu
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
506d7f04
Commit
506d7f04
authored
Sep 22, 2011
by
Leigh B Stoller
Browse files
Fix to HasVirtualNodes(); must join with the reserved table.
parent
b314d660
Changes
1
Hide whitespace changes
Inline
Side-by-side
db/Node.pm.in
View file @
506d7f04
...
...
@@ -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);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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