diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2004-11-29 21:01:24 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2004-11-29 21:01:24 (GMT) |
commit | d5b0db14a939d07aa220216b1698c9ddc9cc7430 (patch) | |
tree | 05528092819fe67012dba14723595703309e092c /src/H5C.c | |
parent | 3eea418b507d9a561606c658eba5c6b0158f520d (diff) | |
download | hdf5-d5b0db14a939d07aa220216b1698c9ddc9cc7430.zip hdf5-d5b0db14a939d07aa220216b1698c9ddc9cc7430.tar.gz hdf5-d5b0db14a939d07aa220216b1698c9ddc9cc7430.tar.bz2 |
[svn-r9599] Purpose:
New internal feature
Description:
Add a "release" routine to the skip lists, which releases all the nodes
in the skip list, but keeps the skip list active.
Platforms tested:
FreeBSD 4.10 (sleipnir)
Linux 2.4 (verbena)
Too minor to require h5committest
Diffstat (limited to 'src/H5C.c')
-rw-r--r-- | src/H5C.c | 10 |
1 files changed, 2 insertions, 8 deletions
@@ -2490,15 +2490,9 @@ H5C_flush_cache(H5F_t * f, if(cache_ptr->slist_ptr) { - /* XXX: Replace this with call to H5SL_free() when its implemented... */ - H5SL_close(cache_ptr->slist_ptr); + /* Release all nodes from skip list, but keep list active */ + H5SL_release(cache_ptr->slist_ptr); - /* XXX: ...and remove this call */ - if ( (cache_ptr->slist_ptr = H5SL_create(H5SL_TYPE_HADDR,0.5,16)) - == NULL ) { - - HGOTO_ERROR(H5E_CACHE, H5E_CANTCREATE, FAIL, "can't create skip list.") - } } cache_ptr->slist_len = 0; cache_ptr->slist_size = 0; |