Commit d86cf85b authored by Shane Snyder's avatar Shane Snyder

temporary handle reset workaround

mercury does not reset the target_id as part of HG_Reset
parent da062e4b
...@@ -1453,6 +1453,9 @@ static hg_return_t margo_handle_cache_get(margo_instance_id mid, ...@@ -1453,6 +1453,9 @@ static hg_return_t margo_handle_cache_get(margo_instance_id mid,
hret = HG_Reset(el->handle, addr, id); hret = HG_Reset(el->handle, addr, id);
if(hret == HG_SUCCESS) if(hret == HG_SUCCESS)
{ {
/* XXX: Mercury doesn't reset the target_id so we need to do that manually for now */
HG_Set_target_id(el->handle, 0);
/* put on in-use list and pass back handle */ /* put on in-use list and pass back handle */
HASH_ADD(hh, mid->used_handle_hash, handle, sizeof(hg_handle_t), el); HASH_ADD(hh, mid->used_handle_hash, handle, sizeof(hg_handle_t), el);
*handle = el->handle; *handle = el->handle;
......
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