summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjhendersonHDF <jhenderson@hdfgroup.org>2023-08-04 04:05:24 (GMT)
committerGitHub <noreply@github.com>2023-08-04 04:05:24 (GMT)
commit1bb9a0d45ce31eb1cdffd1b79d975afeab34851c (patch)
treefca2d773cfe61c7026997f150df4f0c676044170
parent51715c1be614a5f177298ec1974ac992f62163ae (diff)
downloadhdf5-1bb9a0d45ce31eb1cdffd1b79d975afeab34851c.zip
hdf5-1bb9a0d45ce31eb1cdffd1b79d975afeab34851c.tar.gz
hdf5-1bb9a0d45ce31eb1cdffd1b79d975afeab34851c.tar.bz2
Fix assertion failure in H5D__mpio_collective_filtered_vec_io (#3340) (#3350)
-rw-r--r--src/H5Dmpio.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/H5Dmpio.c b/src/H5Dmpio.c
index 4b4c6ed..901907c 100644
--- a/src/H5Dmpio.c
+++ b/src/H5Dmpio.c
@@ -5489,6 +5489,9 @@ H5D__mpio_collective_filtered_vec_io(const H5D_filtered_collective_io_info_t *ch
for (size_t i = 0, vec_idx = 0; i < chunk_list->num_chunk_infos; i++) {
H5F_block_t *chunk_block;
+ if (op_type == H5D_IO_OP_READ && !chunk_list->chunk_infos[i].need_read)
+ continue;
+
/*
* Check that we aren't going to accidentally try to write past the
* allocated memory for the I/O vector buffers in case bookkeeping
@@ -5497,9 +5500,6 @@ H5D__mpio_collective_filtered_vec_io(const H5D_filtered_collective_io_info_t *ch
*/
assert(vec_idx < iovec_count);
- if (op_type == H5D_IO_OP_READ && !chunk_list->chunk_infos[i].need_read)
- continue;
-
/* Set convenience pointer for current chunk block */
chunk_block = (op_type == H5D_IO_OP_READ) ? &chunk_list->chunk_infos[i].chunk_current
: &chunk_list->chunk_infos[i].chunk_new;