From 7653aa4a6ad5bf584b96a31907a221ab23d3030e Mon Sep 17 00:00:00 2001 From: Pedro Vicente Nunes Date: Tue, 25 Nov 2008 11:31:16 -0500 Subject: [svn-r16132] some chunks were not deleted for some cases, the comparison to check for chunk offsets outside of the new dimensions was chunk_offset[ i ] > dimension [ i ] and it must be chunk_offset[ i ] >= dimension [ i ] tested: windows, linux --- src/H5Dchunk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/H5Dchunk.c b/src/H5Dchunk.c index d8e13a5..6058e16 100644 --- a/src/H5Dchunk.c +++ b/src/H5Dchunk.c @@ -3483,7 +3483,7 @@ H5D_chunk_prune_by_extent(H5D_t *dset, hid_t dxpl_id, const hsize_t *old_dims) /* Check for chunk offset outside of new dimensions */ for(u = 0; u < rank; u++) - if((hsize_t)ent->offset[u] > curr_dims[u]) { + if((hsize_t)ent->offset[u] >= curr_dims[u]) { /* Evict the entry from the cache, but do not flush it to disk */ if(H5D_chunk_cache_evict(dset, dxpl_id, dxpl_cache, ent, FALSE) < 0) HGOTO_ERROR(H5E_DATASET, H5E_CANTREMOVE, FAIL, "unable to evict chunk") -- cgit v0.12