Commit 15262441 authored by Wesley Bland's avatar Wesley Bland Committed by Huiwei Lu
Browse files

Correctly return errcode for NBC



The error code set in the status was being ignored for NBC and one-sided
requests (which wasn't right anyway so it didn't matter). This grabs the
error code from the status now.
Signed-off-by: default avatarHuiwei Lu <huiweilu@mcs.anl.gov>
parent 18b18311
...@@ -218,6 +218,7 @@ int MPIR_Request_complete(MPI_Request * request, MPID_Request * request_ptr, ...@@ -218,6 +218,7 @@ int MPIR_Request_complete(MPI_Request * request, MPID_Request * request_ptr,
case MPID_COLL_REQUEST: case MPID_COLL_REQUEST:
case MPID_WIN_REQUEST: case MPID_WIN_REQUEST:
{ {
mpi_errno = request_ptr->status.MPI_ERROR;
MPIR_Request_extract_status(request_ptr, status); MPIR_Request_extract_status(request_ptr, status);
MPID_Request_release(request_ptr); MPID_Request_release(request_ptr);
if (NULL != request) *request = MPI_REQUEST_NULL; if (NULL != request) *request = MPI_REQUEST_NULL;
......
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