Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
- correctly handle bulk tranfers using pool sets
  • Loading branch information
carns committed Jul 12, 2024
1 parent 4393448 commit a542633
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/quintain-server.c
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,12 @@ static void qtn_work_ult(hg_handle_t handle)
finish:
margo_respond(handle, &out);
margo_free_input(handle, &in);
if (bulk_handle != HG_BULK_NULL) margo_bulk_free(bulk_handle);
if (bulk_handle != HG_BULK_NULL) {
if (in.flags & QTN_WORK_USE_SERVER_POOLSET)
margo_bulk_poolset_release(provider->poolset, bulk_handle);
else
margo_bulk_free(bulk_handle);
}
if (bulk_buffer != NULL) free(bulk_buffer);
if (out.resp_buffer) free(out.resp_buffer);
margo_destroy(handle);
Expand Down

0 comments on commit a542633

Please sign in to comment.