summaryrefslogtreecommitdiffstats
path: root/src/H5D.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2007-05-10 15:26:41 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2007-05-10 15:26:41 (GMT)
commitd214eddeff1a929989a532802a4b417fd80a6237 (patch)
tree18e76fc77366b42f0e5fce304499b24d6170117e /src/H5D.c
parent8eac66e943781dab6c3253c9c775a9707f8240a1 (diff)
downloadhdf5-d214eddeff1a929989a532802a4b417fd80a6237.zip
hdf5-d214eddeff1a929989a532802a4b417fd80a6237.tar.gz
hdf5-d214eddeff1a929989a532802a4b417fd80a6237.tar.bz2
[svn-r13743] Description:
Don't delete chunks from the dataset's B-tree while we are iterating over the B-tree, when reducing the size of the dataset's dataspace with H5Dset_extent(). Tested on: Mac OS X/32 2.6 (amazon) Linux/32 2.6 (chicago) Linux/64 2.6 (chicago2)
Diffstat (limited to 'src/H5D.c')
-rw-r--r--src/H5D.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5D.c b/src/H5D.c
index 776a2ae..3594ab0 100644
--- a/src/H5D.c
+++ b/src/H5D.c
@@ -3192,7 +3192,7 @@ H5D_set_extent(H5D_t *dset, const hsize_t *size, hid_t dxpl_id)
H5D_BUILD_IO_INFO(&io_info, dset, dxpl_cache, dxpl_id, NULL);
/* Remove excess chunks */
- if(H5D_istore_prune_by_extent(&io_info) < 0)
+ if(H5D_istore_prune_by_extent(&io_info, curr_dims) < 0)
HGOTO_ERROR(H5E_DATASET, H5E_WRITEERROR, FAIL, "unable to remove chunks ")
/* Reset the elements outsize the new dimensions, but in existing chunks */