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
71207074
Commit
71207074
authored
May 23, 2002
by
Leigh B. Stoller
Browse files
Optimize the query looking for a node's eventstatus (as per
recommendation by Dave in email to testbed-ops).
parent
cc8cc441
Changes
1
Show whitespace changes
Inline
Side-by-side
lib/libtb/tbdb.c
View file @
71207074
...
...
@@ -176,9 +176,8 @@ mydb_checkexptnodeeventstate(char *pid, char *eid,
MYSQL_ROW
row
;
int
nrows
;
res
=
mydb_query
(
"select eventstate from nodes "
"left join reserved on "
" nodes.node_id=reserved.node_id "
res
=
mydb_query
(
"select eventstate from reserved "
"left join nodes on nodes.node_id=reserved.node_id "
"where reserved.pid='%s' and reserved.eid='%s' "
,
1
,
pid
,
eid
);
...
...
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