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
4d9e2ad6
Commit
4d9e2ad6
authored
Jan 30, 2003
by
Leigh B. Stoller
Browse files
Fix up slow query.
parent
08b2b626
Changes
1
Hide whitespace changes
Inline
Side-by-side
pxe/proxydhcp_mysql.c
View file @
4d9e2ad6
...
...
@@ -36,9 +36,8 @@ query_db(struct in_addr ipaddr, struct in_addr *sip,
MYSQL_RES
*
res
;
MYSQL_ROW
row
;
char
dbquery
[]
=
"select pxe_boot_path, next_pxe_boot_path from nodes as n "
"left join interfaces as i on "
"i.node_id=n.node_id "
"select pxe_boot_path,next_pxe_boot_path from interfaces as i "
"left join nodes as n on i.node_id=n.node_id "
"where i.IP = '%s'"
;
#define PXEBOOT_PATH 0
...
...
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