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
19b508c5
Commit
19b508c5
authored
Feb 01, 2003
by
Leigh B. Stoller
Browse files
Revert query that got optimized wrongly.
parent
c094a39f
Changes
1
Hide whitespace changes
Inline
Side-by-side
tmcd/tmcd.c
View file @
19b508c5
...
...
@@ -3046,11 +3046,11 @@ COMMAND_PROTOTYPE(dovnodelist)
char
buf
[
MYBUFSIZE
];
int
nrows
;
res
=
mydb_query
(
"select r.node_id,n.jailflag from
nodes
as
n
"
"left join
reserved
as
r
on r.node_id=n.node_id "
"left join node_types as nt on nt.type=n.type "
"where nt.isvirtnode=1 and n.phys_nodeid='%s'"
,
2
,
reqp
->
nodeid
);
res
=
mydb_query
(
"select r.node_id,n.jailflag from
reserved
as
r
"
"left join
nodes
as
n
on r.node_id=n.node_id "
"left join node_types as nt on nt.type=n.type "
"where nt.isvirtnode=1 and n.phys_nodeid='%s'"
,
2
,
reqp
->
nodeid
);
if
(
!
res
)
{
error
(
"VNODELIST: %s: DB Error getting vnode list
\n
"
,
...
...
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