Commit 71207074 authored by Leigh B. Stoller's avatar 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
...@@ -176,9 +176,8 @@ mydb_checkexptnodeeventstate(char *pid, char *eid, ...@@ -176,9 +176,8 @@ mydb_checkexptnodeeventstate(char *pid, char *eid,
MYSQL_ROW row; MYSQL_ROW row;
int nrows; int nrows;
res = mydb_query("select eventstate from nodes " res = mydb_query("select eventstate from reserved "
"left join reserved on " "left join nodes on nodes.node_id=reserved.node_id "
" nodes.node_id=reserved.node_id "
"where reserved.pid='%s' and reserved.eid='%s' ", "where reserved.pid='%s' and reserved.eid='%s' ",
1, pid, eid); 1, pid, eid);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment