mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-12-09 07:32:32 +08:00
Correct set extent operation on VDS to iterate over # of used sub-datasets
instead of # of allocated sub-datasets.
This commit is contained in:
parent
1bcad080c1
commit
659e212e11
@ -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