Commit 5ae1ce8f authored by Shane Snyder's avatar Shane Snyder

properly handle HG_Reset error

parent 5a1d56d8
......@@ -1331,6 +1331,11 @@ static hg_return_t margo_handle_cache_get(margo_instance_id mid,
HASH_ADD(hh, mid->used_handle_hash, handle, sizeof(hg_handle_t), el);
*handle = el->handle;
}
else
{
/* reset failed, add handle back to the free list */
LL_APPEND(mid->free_handle_list, el);
}
return hret;
}
......
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