Skip to content

Commit

Permalink
Merge pull request #66 from jsquyres/pr/ob1-destructor-fix-2
Browse files Browse the repository at this point in the history
ob1 destructor fix #2
  • Loading branch information
rhc54 committed Oct 31, 2014
2 parents f4dd1e6 + 527041d commit e4d4266
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions ompi/mca/pml/ob1/pml_ob1_isend.c
Original file line number Diff line number Diff line change
Expand Up @@ -234,14 +234,12 @@ int mca_pml_ob1_send(void *buf,
PERUSE_SEND);

MCA_PML_OB1_SEND_REQUEST_START_W_SEQ(sendreq, endpoint, seqn, rc);
if (rc != OMPI_SUCCESS) {
return rc;
}

ompi_request_wait_completion(&sendreq->req_send.req_base.req_ompi);
if (OPAL_LIKELY(rc == OMPI_SUCCESS)) {
ompi_request_wait_completion(&sendreq->req_send.req_base.req_ompi);

rc = sendreq->req_send.req_base.req_ompi.req_status.MPI_ERROR;
MCA_PML_BASE_SEND_REQUEST_FINI(&sendreq->req_send);
rc = sendreq->req_send.req_base.req_ompi.req_status.MPI_ERROR;
MCA_PML_BASE_SEND_REQUEST_FINI(&sendreq->req_send);
}
OBJ_DESTRUCT(sendreq);

return rc;
Expand Down

0 comments on commit e4d4266

Please sign in to comment.