summaryrefslogtreecommitdiffstats
path: root/src/H5Dint.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@koziol.gov>2019-04-16 23:07:29 (GMT)
committerQuincey Koziol <koziol@koziol.gov>2019-04-16 23:07:29 (GMT)
commit659e212e119b4920d2bd41b397cfb0e958817eba (patch)
tree601f6ffebe28e3cbd9507bec514990f6af015708 /src/H5Dint.c
parent1bcad080c1b3dbc0a7172d86b23daa408644df5a (diff)
downloadhdf5-659e212e119b4920d2bd41b397cfb0e958817eba.zip
hdf5-659e212e119b4920d2bd41b397cfb0e958817eba.tar.gz
hdf5-659e212e119b4920d2bd41b397cfb0e958817eba.tar.bz2
Correct set extent operation on VDS to iterate over # of used sub-datasets
instead of # of allocated sub-datasets.
Diffstat (limited to 'src/H5Dint.c')
-rw-r--r--src/H5Dint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5Dint.c b/src/H5Dint.c
index 6fc02de..280d07e 100644
--- a/src/H5Dint.c
+++ b/src/H5Dint.c
@@ -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 */