Commit b3a16897 authored by Matthieu Dorier's avatar Matthieu Dorier

corrected bug with target ids

parent 03f02ecd
...@@ -295,6 +295,10 @@ static void bake_create_ult(hg_handle_t handle) ...@@ -295,6 +295,10 @@ static void bake_create_ult(hg_handle_t handle)
goto respond_with_error; goto respond_with_error;
} }
hret = margo_get_input(handle, &in);
if(hret != HG_SUCCESS)
goto respond_with_error;
/* find the pmem pool */ /* find the pmem pool */
bake_pmem_entry_t* entry = find_pmem_entry(svr_ctx, in.bti); bake_pmem_entry_t* entry = find_pmem_entry(svr_ctx, in.bti);
if(entry == NULL) { if(entry == NULL) {
...@@ -307,10 +311,6 @@ static void bake_create_ult(hg_handle_t handle) ...@@ -307,10 +311,6 @@ static void bake_create_ult(hg_handle_t handle)
memset(&out, 0, sizeof(out)); memset(&out, 0, sizeof(out));
hret = margo_get_input(handle, &in);
if(hret != HG_SUCCESS)
goto respond_with_error;
prid = (pmemobj_region_id_t*)out.rid.data; prid = (pmemobj_region_id_t*)out.rid.data;
prid->size = in.region_size; prid->size = in.region_size;
/* find the pmem pool */ /* find the pmem pool */
......
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