summaryrefslogtreecommitdiffstats
path: root/src/H5Dseq.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2002-11-01 18:39:20 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2002-11-01 18:39:20 (GMT)
commitba751a6a4c23bd0c53625e53f67562f5b4af00b4 (patch)
tree2afd6751bcb6e7eca02611463e16b05e3626287b /src/H5Dseq.c
parent23457df13df32e1db53b3ce36abd2ef7ad6d0494 (diff)
downloadhdf5-ba751a6a4c23bd0c53625e53f67562f5b4af00b4.zip
hdf5-ba751a6a4c23bd0c53625e53f67562f5b4af00b4.tar.gz
hdf5-ba751a6a4c23bd0c53625e53f67562f5b4af00b4.tar.bz2
[svn-r6047] Purpose:
Bug fix & code cleanup Description: Hyperslab code for collapsing dimensions was incorrectly collapsing selections inappropriately when the fastest changing dimension couldn't be collapsed. Also add some more assertions which will make similar bugs easier to find. Solution: Break out of loop earlier. Platforms tested: modi4 (parallel), too small to triple check.
Diffstat (limited to 'src/H5Dseq.c')
-rw-r--r--src/H5Dseq.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/H5Dseq.c b/src/H5Dseq.c
index 105d5da..6176003 100644
--- a/src/H5Dseq.c
+++ b/src/H5Dseq.c
@@ -71,6 +71,7 @@ H5F_seq_read(H5F_t *f, hid_t dxpl_id, const H5O_layout_t *layout,
assert(f);
assert(layout);
assert(buf);
+ assert(TRUE==H5P_isa_class(dxpl_id,H5P_DATASET_XFER));
if (H5F_seq_readv(f, dxpl_id, layout, dc_plist, file_space, elmt_size, 1, &seq_len, &dset_offset, buf)<0)
HGOTO_ERROR(H5E_IO, H5E_READERROR, FAIL, "vector read failed");
@@ -115,6 +116,7 @@ H5F_seq_write(H5F_t *f, hid_t dxpl_id, H5O_layout_t *layout,
assert(f);
assert(layout);
assert(buf);
+ assert(TRUE==H5P_isa_class(dxpl_id,H5P_DATASET_XFER));
if (H5F_seq_writev(f, dxpl_id, layout, dc_plist, file_space, elmt_size, 1, &seq_len, &dset_offset, buf)<0)
HGOTO_ERROR(H5E_IO, H5E_WRITEERROR, FAIL, "vector write failed");