Commit d6ad8923 authored by Philip Carns's avatar Philip Carns

bug fix to handle reset path

parent 458320f9
......@@ -789,10 +789,7 @@ hg_return_t margo_iforward_provider_id(
assert(provider_id <= MARGO_MAX_PROVIDER_ID);
hgi = HG_Get_info(handle);
/* make sure bottom bits of id are clear */
id = (hgi->id >> (__MARGO_PROVIDER_ID_SIZE*8)) <<
(__MARGO_PROVIDER_ID_SIZE*8);
id |= provider_id;
id = mux_id(hgi->id, provider_id);
/* TODO: if we reset the handle here, is there any reason to do so in
* the handle cache?
......@@ -814,6 +811,11 @@ hg_return_t margo_iforward_provider_id(
ret = HG_Register(hgi->hg_class, id, in_cb, out_cb, NULL);
if(ret != HG_SUCCESS)
return(ret);
/* should be able to reset now */
ret = HG_Reset(handle, hgi->addr, id);
if(ret != HG_SUCCESS)
return(ret);
}
ret = ABT_eventual_create(sizeof(hret), &eventual);
......
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