summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2003-04-22 05:50:12 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2003-04-22 05:50:12 (GMT)
commit7b976dd7a3b965b5f64c29cffa5bba80797fc2a9 (patch)
tree8a7f4b92c9f398f04bb0dc1194467b5b83f857a4 /src
parent1b9ecb6a0164289b401e8df0abbbf54c298199c1 (diff)
downloadhdf5-7b976dd7a3b965b5f64c29cffa5bba80797fc2a9.zip
hdf5-7b976dd7a3b965b5f64c29cffa5bba80797fc2a9.tar.gz
hdf5-7b976dd7a3b965b5f64c29cffa5bba80797fc2a9.tar.bz2
[svn-r6728] Purpose:
Silly bug fix. Description: Forgot to put the comm/info duplication code in. Solution: Put them back in. Platforms tested: Did not run h5committest since the changes are all in the MPIO driver code. Tested on eirene and Modi4, both parallel modes. Misc. update:
Diffstat (limited to 'src')
-rw-r--r--src/H5FDmpio.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/H5FDmpio.c b/src/H5FDmpio.c
index 5a378aa..d54b4fd 100644
--- a/src/H5FDmpio.c
+++ b/src/H5FDmpio.c
@@ -830,9 +830,11 @@ H5FD_mpio_fapl_get(H5FD_t *_file)
if (NULL==(fa=H5MM_calloc(sizeof(H5FD_mpio_fapl_t))))
HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, NULL, "memory allocation failed");
- /* These should both be copied. --rpm, 1999-08-13 */
- fa->comm = file->comm;
- fa->info = file->info;
+ /* Duplicate communicator and Info object. */
+ if (FAIL==H5FD_mpio_comm_info_dup(file->comm, file->info,
+ &fa->comm, &fa->info))
+ HGOTO_ERROR(H5E_INTERNAL, H5E_CANTCOPY, NULL,
+ "Communicator/Info duplicate failed");
/* Set return value */
ret_value=fa;