improve join protocol
This commit is contained in:
parent
123b656dcf
commit
79124c6e5c
1 changed files with 5 additions and 4 deletions
|
|
@ -82,6 +82,7 @@ static int handle_scheduler_join(cluster_t* c, endpoint_t* ep,
|
|||
{
|
||||
xce_reply_t reply;
|
||||
ep_private_t* priv = (ep_private_t*)ep->data;
|
||||
int rc = 0;
|
||||
|
||||
TRACE("%s scheduler join, ep %p", __func__, ep);
|
||||
|
||||
|
|
@ -90,13 +91,13 @@ static int handle_scheduler_join(cluster_t* c, endpoint_t* ep,
|
|||
c->sched.ep = ep;
|
||||
priv->u.idx = 0;
|
||||
|
||||
reply.status = 0;
|
||||
rc = on_scheduler_join(c);
|
||||
|
||||
reply.status = rc;
|
||||
reply.data_which = RequestReply_data_nodata;
|
||||
xce_reply(ep, c->myhost, &reply);
|
||||
|
||||
on_scheduler_join(c);
|
||||
|
||||
return 0;
|
||||
return rc;
|
||||
}
|
||||
|
||||
static int handle_controller_join(cluster_t* c, endpoint_t* ep,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue