Skip to content

Commit 2a2db13

Browse files
committed
Gracefully deal with a get returning 1 (complete right away).
Kudos to @EmmanuelBRELLE for spotting it. Signed-off-by: George Bosilca <[email protected]>
1 parent b11841a commit 2a2db13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ompi/mca/pml/ob1/pml_ob1_recvreq.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ int mca_pml_ob1_recv_request_get_frag (mca_pml_ob1_rdma_frag_t *frag)
470470
rc = mca_bml_base_get (bml_btl, frag->local_address, frag->remote_address, local_handle,
471471
(mca_btl_base_registration_handle_t *) frag->remote_handle, frag->rdma_length,
472472
0, MCA_BTL_NO_ORDER, mca_pml_ob1_rget_completion, frag);
473-
if( OPAL_UNLIKELY(OMPI_SUCCESS != rc) ) {
473+
if( OPAL_UNLIKELY(OMPI_SUCCESS > rc) ) {
474474
return mca_pml_ob1_recv_request_get_frag_failed (frag, OMPI_ERR_OUT_OF_RESOURCE);
475475
}
476476

0 commit comments

Comments
 (0)