mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-01-24 15:25:00 +08:00
Fix assertion failure in H5D__mpio_collective_filtered_vec_io (#3340)
This commit is contained in:
parent
63b0f152e5
commit
d6ada85c91
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user