Commit e766d651 authored by Mike Hibler's avatar Mike Hibler

Add more qualification to storageconfig query.

It was returning info for blockstores of the same name in different
experiments...oops!
parent 7b3d0b64
......@@ -4413,9 +4413,11 @@ COMMAND_PROTOTYPE(dostorageconfig)
res = mydb_query("select rb.bsidx, r.vname, rb.vname, rb.size "
"from reserved_blockstores as rb "
" left join reserved as r "
" on r.node_id = rb.vnode_id "
" on r.node_id = rb.vnode_id and "
" r.exptidx = rb.exptidx "
" left join virt_lans as vl "
" on r.vname = vl.vnode "
" on r.vname = vl.vnode and "
" r.exptidx = vl.exptidx "
"where vl.vname in (%s) "
" and vl.pid='%s' and vl.eid='%s'",
4, buf, reqp->pid, reqp->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