Commit 2d6a060b authored by Matthieu Dorier's avatar Matthieu Dorier

correcting issue when using disable_response in conjunction with providers

parent 2676c8cf
......@@ -809,11 +809,20 @@ hg_return_t margo_provider_iforward(
if(!flag)
return(HG_NO_MATCH);
/* find out if disable_response was called for this RPC */
hg_bool_t response_disabled;
ret = HG_Registered_disabled_response(hgi->hg_class, hgi->id, &response_disabled);
if(ret != HG_SUCCESS)
return(ret);
/* register new ID that includes provider id */
ret = margo_register_internal(margo_hg_info_get_instance(hgi),
id, in_cb, out_cb, NULL, ABT_POOL_NULL);
if(ret == 0)
return(HG_OTHER_ERROR);
ret = HG_Registered_disable_response(hgi->hg_class, id, response_disabled);
if(ret != HG_SUCCESS)
return(ret);
}
ret = HG_Reset(handle, hgi->addr, id);
if(ret != HG_SUCCESS)
......
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