diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2000-10-25 05:54:05 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2000-10-25 05:54:05 (GMT) |
commit | a224c0b56d387fb03c43fd439f6f9bf9c061b309 (patch) | |
tree | 1fd4e23ad8522e9f773d45442f372645dac940c4 /src/H5Smpio.c | |
parent | 25886a7bbaeb2c072c0f17c5058bab095b81da76 (diff) | |
download | hdf5-a224c0b56d387fb03c43fd439f6f9bf9c061b309.zip hdf5-a224c0b56d387fb03c43fd439f6f9bf9c061b309.tar.gz hdf5-a224c0b56d387fb03c43fd439f6f9bf9c061b309.tar.bz2 |
[svn-r2735] Purpose:
Bug fix
Description:
Recent changes to H5FD_read() added a new argument of type of
data to be written but the MPIO file driver call to H5FD_read()
was not updated. Also, the prototype of H5FD_read() in H5Fprivate.h
was "screened out", thus the compiler could not detect the inconsistency.
With the mismatched arguments, MPIO failed badly.
Solution:
Update the H5FD_read() call with the new parameter. Since the
call is used by H5Dread call so far, it is hardcoded to use
H5FD_MEM_DRAW as the value. If the call is used besides for
H5Dread, this parameter needs to be better defined.
(Still need to fix the prototype being blocked off.)
Platforms tested:
O2K -64 parallel.
Diffstat (limited to 'src/H5Smpio.c')
-rw-r--r-- | src/H5Smpio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5Smpio.c b/src/H5Smpio.c index 150f918..afeb3f1 100644 --- a/src/H5Smpio.c +++ b/src/H5Smpio.c @@ -624,7 +624,7 @@ H5S_mpio_spaces_xfer(H5F_t *f, const struct H5O_layout_t *layout, HRETURN_ERROR(H5E_IO, H5E_WRITEERROR, FAIL,"MPI write failed"); } } else { - err = H5FD_read (f->shared->lf, dxpl_id, addr, mpi_count, buf); + err = H5FD_read (f->shared->lf, H5FD_MEM_DRAW, dxpl_id, addr, mpi_count, buf); if (err) { HRETURN_ERROR(H5E_IO, H5E_READERROR, FAIL,"MPI read failed"); } |