From 659e212e119b4920d2bd41b397cfb0e958817eba Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Tue, 16 Apr 2019 18:07:29 -0500 Subject: Correct set extent operation on VDS to iterate over # of used sub-datasets instead of # of allocated sub-datasets. --- src/H5Dint.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- cgit v0.12