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,
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'%s' and reserved.eid='%s' ",
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