mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-12-09 07:32:32 +08:00
Merge pull request #1659 in HDFFV/hdf5 from ~KOZIOL/hdf5:vds_set_extent_fix to develop
* commit '659e212e119b4920d2bd41b397cfb0e958817eba': Correct set extent operation on VDS to iterate over # of used sub-datasets instead of # of allocated sub-datasets.
This commit is contained in:
commit
90efe04bee
@ -2872,7 +2872,7 @@ H5D__set_extent(H5D_t *dset, const hsize_t *size)
|
||||
dset->shared->layout.storage.u.virt.list[u].virtual_space_status = H5O_VIRTUAL_STATUS_CORRECT;
|
||||
|
||||
/* Patch sub-source datasets */
|
||||
for(v = 0; v < dset->shared->layout.storage.u.virt.list[u].sub_dset_nalloc; v++)
|
||||
for(v = 0; v < dset->shared->layout.storage.u.virt.list[u].sub_dset_nused; v++)
|
||||
if(H5S_set_extent(dset->shared->layout.storage.u.virt.list[u].sub_dset[v].virtual_select, size) < 0)
|
||||
HGOTO_ERROR(H5E_DATASET, H5E_CANTINIT, FAIL, "unable to modify size of dataspace")
|
||||
} /* end for */
|
||||
|
Loading…
Reference in New Issue
Block a user