diff options
author | Neil Fortner <nfortne2@hdfgroup.org> | 2011-10-18 21:29:13 (GMT) |
---|---|---|
committer | Neil Fortner <nfortne2@hdfgroup.org> | 2011-10-18 21:29:13 (GMT) |
commit | b02f6c2171986e08df00cbf47361a94a0833d72e (patch) | |
tree | 1e261c5416ebc0dd725c0dd53d55984cac83ed6e /src/H5Dchunk.c | |
parent | fa25014d40a6e74b451e3aa9fef45e61a62d6f80 (diff) | |
download | hdf5-b02f6c2171986e08df00cbf47361a94a0833d72e.zip hdf5-b02f6c2171986e08df00cbf47361a94a0833d72e.tar.gz hdf5-b02f6c2171986e08df00cbf47361a94a0833d72e.tar.bz2 |
[svn-r21604] Port r21603 to 1.8 branch
Purpose: Add generic skip list implementation
Description:
Added new H5SL_TYPE_GENERIC skip list type, which uses void *'s as keys and a
client-supplied callback for key comparison. This was added to support the
upcoming "merge named datatype" feature for H5Ocopy, but may be used in other
places as well. Also added testing.
Also fixed a potential bug with the H5SL_TYPE_OBJ implementation, and added
testing for that.
Tested: jam, koala, heiwa (h5committest), durandal
Diffstat (limited to 'src/H5Dchunk.c')
-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 c7aa9c9..b261ea6 100644 --- a/src/H5Dchunk.c +++ b/src/H5Dchunk.c @@ -691,7 +691,7 @@ H5D_chunk_io_init(const H5D_io_info_t *io_info, const H5D_type_info_t *type_info else { /* Initialize skip list for chunk selections */ if(NULL == dataset->shared->cache.chunk.sel_chunks) { - if(NULL == (dataset->shared->cache.chunk.sel_chunks = H5SL_create(H5SL_TYPE_HSIZE))) + if(NULL == (dataset->shared->cache.chunk.sel_chunks = H5SL_create(H5SL_TYPE_HSIZE, NULL))) HGOTO_ERROR(H5E_DATASET, H5E_CANTCREATE, FAIL, "can't create skip list for chunk selections") } /* end if */ fm->sel_chunks = dataset->shared->cache.chunk.sel_chunks; |