summaryrefslogtreecommitdiffstats
path: root/src/H5FPclient.c
diff options
context:
space:
mode:
authorBill Wendling <wendling@ncsa.uiuc.edu>2003-11-13 20:05:56 (GMT)
committerBill Wendling <wendling@ncsa.uiuc.edu>2003-11-13 20:05:56 (GMT)
commite3a280a1652327757eac779e50ca584540d334db (patch)
tree9aa8c6103937cf3bb7427ca9145ba43191e4a34e /src/H5FPclient.c
parent18c2554090fa12787c671ac0ff0d085af30cfea2 (diff)
downloadhdf5-e3a280a1652327757eac779e50ca584540d334db.zip
hdf5-e3a280a1652327757eac779e50ca584540d334db.tar.gz
hdf5-e3a280a1652327757eac779e50ca584540d334db.tar.bz2
[svn-r7847] Purpose:
Bug Fix Description: The SAP was sending back replies to the client but the client wasn't picking them up (this was after a dump from the server. Solution: Read the extra replies from the server. Platforms tested: AIX (w/ FPHDF5) Linux (w/ FPHDF5) Solaris (w/ Fortran & C++) Misc. update:
Diffstat (limited to 'src/H5FPclient.c')
-rw-r--r--src/H5FPclient.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/H5FPclient.c b/src/H5FPclient.c
index 200517c..4d78e39 100644
--- a/src/H5FPclient.c
+++ b/src/H5FPclient.c
@@ -464,6 +464,13 @@ H5FP_request_write_metadata(H5FD_t *file, unsigned file_id, hid_t dxpl_id,
"can't write metadata update to file");
}
+ if ((mrc = MPI_Recv(&sap_reply, 1, H5FP_reply, (int)H5FP_sap_rank,
+ H5FP_TAG_REPLY, H5FP_SAP_COMM, &mpi_status)) != MPI_SUCCESS)
+ HMPI_GOTO_ERROR(FAIL, "MPI_Recv failed", mrc);
+
+ if (sap_reply.status != H5FP_STATUS_OK)
+ HGOTO_ERROR(H5E_RESOURCE, H5E_CANTCHANGE, FAIL, "can't write metadata to server");
+
break;
default:
*status = sap_reply.status;
@@ -544,6 +551,13 @@ H5FP_request_flush_metadata(H5FD_t *file, unsigned file_id, hid_t dxpl_id,
"can't write metadata update to file");
}
+ if ((mrc = MPI_Recv(&sap_reply, 1, H5FP_reply, (int)H5FP_sap_rank,
+ H5FP_TAG_REPLY, H5FP_SAP_COMM, &mpi_status)) != MPI_SUCCESS)
+ HMPI_GOTO_ERROR(FAIL, "MPI_Recv failed", mrc);
+
+ if (sap_reply.status != H5FP_STATUS_OK)
+ HGOTO_ERROR(H5E_RESOURCE, H5E_CANTCHANGE, FAIL, "can't write metadata to server");
+
break;
default:
*status = sap_reply.status;