summaryrefslogtreecommitdiffstats
path: root/src/H5C.c
diff options
context:
space:
mode:
authorNeil Fortner <nfortne2@hdfgroup.org>2011-10-21 19:51:32 (GMT)
committerNeil Fortner <nfortne2@hdfgroup.org>2011-10-21 19:51:32 (GMT)
commitf22b7d2e1268549e343e141206ab143b88da25ed (patch)
treeeb22bac6752b7212cf2138cbb44caf70cc141d5b /src/H5C.c
parentfb1937371d160d267c6d18c88f49b59b67b663d9 (diff)
downloadhdf5-f22b7d2e1268549e343e141206ab143b88da25ed.zip
hdf5-f22b7d2e1268549e343e141206ab143b88da25ed.tar.gz
hdf5-f22b7d2e1268549e343e141206ab143b88da25ed.tar.bz2
[svn-r21646] 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/H5C.c')
-rw-r--r--src/H5C.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5C.c b/src/H5C.c
index 3f74986..c6d4cf1 100644
--- a/src/H5C.c
+++ b/src/H5C.c
@@ -989,7 +989,7 @@ H5C_create(size_t max_cache_size,
"memory allocation failed")
}
- if ( (cache_ptr->slist_ptr = H5SL_create(H5SL_TYPE_HADDR)) == NULL ) {
+ if ( (cache_ptr->slist_ptr = H5SL_create(H5SL_TYPE_HADDR, NULL)) == NULL ) {
HGOTO_ERROR(H5E_CACHE, H5E_CANTCREATE, NULL, "can't create skip list.")
}
@@ -4918,7 +4918,7 @@ H5C_dump_cache(H5C_t * cache_ptr,
HDassert(cache_name != NULL );
/* First, create a skip list */
- slist_ptr = H5SL_create(H5SL_TYPE_HADDR);
+ slist_ptr = H5SL_create(H5SL_TYPE_HADDR, NULL);
if ( slist_ptr == NULL ) {