summaryrefslogtreecommitdiffstats
path: root/src/H5Dmpio.c
diff options
context:
space:
mode:
authorJordan Henderson <jhenderson@hdfgroup.org>2017-08-10 19:12:01 (GMT)
committerJordan Henderson <jhenderson@hdfgroup.org>2017-08-10 19:12:01 (GMT)
commit1ce6691a72d8a65febe8fe8ad877e72b28139adb (patch)
treec2257b129ca51293826c33019a8e5d2cd843f607 /src/H5Dmpio.c
parent6738d35d8ac86b5591779b635fb6e7a57dcea37b (diff)
downloadhdf5-1ce6691a72d8a65febe8fe8ad877e72b28139adb.zip
hdf5-1ce6691a72d8a65febe8fe8ad877e72b28139adb.tar.gz
hdf5-1ce6691a72d8a65febe8fe8ad877e72b28139adb.tar.bz2
Fix bug where incorrect amount of data was being read from the file
Diffstat (limited to 'src/H5Dmpio.c')
-rw-r--r--src/H5Dmpio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5Dmpio.c b/src/H5Dmpio.c
index 393e155..5b415c5 100644
--- a/src/H5Dmpio.c
+++ b/src/H5Dmpio.c
@@ -3143,7 +3143,7 @@ H5D__filtered_collective_chunk_entry_io(H5D_filtered_collective_io_info_t *chunk
/* XXX: Test with MPI types and collective read to improve performance */
if (H5F_block_read(io_info->dset->oloc.file, H5FD_MEM_DRAW, chunk_entry->chunk_states.chunk_current.offset,
- buf_size, H5AC_rawdata_dxpl_id, chunk_entry->buf) < 0)
+ chunk_entry->chunk_states.new_chunk.length, H5AC_rawdata_dxpl_id, chunk_entry->buf) < 0)
HGOTO_ERROR(H5E_IO, H5E_READERROR, FAIL, "unable to read raw data chunk")
if (H5Z_pipeline(&io_info->dset->shared->dcpl_cache.pline, H5Z_FLAG_REVERSE, &filter_mask,