Commit 147ae610 authored by Mike Hibler's avatar Mike Hibler

Use pnode when looking up subboss info for a vnode.

When determining the frisbee server to use for a vnode, look up in the
subbosses table by the hosting pnode. This way d710 vnodes will use subboss
rather than boss for their frisbee.
parent 0b5ab9e0
......@@ -4555,7 +4555,7 @@ COMMAND_PROTOTYPE(doloadinfo)
" where i.node_id=s.subboss_id and "
" i.role='ctrl' and "
" s.node_id='%s' and s.service='frisbee'",
1, reqp->nodeid);
1, reqp->isvnode ? reqp->pnodeid : reqp->nodeid);
if (!res2) {
error("doloadinfo: %s: DB Error getting subboss info!\n",
reqp->nodeid);
......
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