diff options
author | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2008-11-25 16:31:16 (GMT) |
---|---|---|
committer | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2008-11-25 16:31:16 (GMT) |
commit | 7653aa4a6ad5bf584b96a31907a221ab23d3030e (patch) | |
tree | d9e93bafe9c37c6dd17981a64be4098245d846ee | |
parent | 4c1f5f3f154ea8bf92285e38346abe86ff2ec16d (diff) | |
download | hdf5-7653aa4a6ad5bf584b96a31907a221ab23d3030e.zip hdf5-7653aa4a6ad5bf584b96a31907a221ab23d3030e.tar.gz hdf5-7653aa4a6ad5bf584b96a31907a221ab23d3030e.tar.bz2 |
[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
-rw-r--r-- | src/H5Dchunk.c | 2 |
1 files changed, 1 insertions, 1 deletions
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") |