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
7d0295e5
Commit
7d0295e5
authored
Jan 30, 2003
by
Leigh B. Stoller
Browse files
Speed up very slow query in nodeidtocontrolnet! Hmm, I'm really liking
that slow query log!
parent
1ba82c91
Changes
1
Hide whitespace changes
Inline
Side-by-side
tmcd/tmcd.c
View file @
7d0295e5
...
...
@@ -3346,9 +3346,8 @@ nodeidtocontrolnet(char *nodeid, int *net)
MYSQL_RES
*
res
;
MYSQL_ROW
row
;
res
=
mydb_query
(
"select control_net from node_types as nt "
"left join nodes as n "
"on nt.type=n.type "
res
=
mydb_query
(
"select control_net from nodes as n "
"left join node_types as nt on nt.type=n.type "
"where n.node_id='%s'"
,
1
,
nodeid
);
...
...
Write
Preview
Supports
Markdown
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