summaryrefslogtreecommitdiffstats
path: root/src/H5C.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2004-11-29 21:01:20 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2004-11-29 21:01:20 (GMT)
commit73df82dcdf83544c8a07b572568e9a3a3f0f9f77 (patch)
treeb56fa674812962644fcc0cadf05e073d2685c6bf /src/H5C.c
parent51ed85b2775eba3923fb9b0c7ee887ff9284cc22 (diff)
downloadhdf5-73df82dcdf83544c8a07b572568e9a3a3f0f9f77.zip
hdf5-73df82dcdf83544c8a07b572568e9a3a3f0f9f77.tar.gz
hdf5-73df82dcdf83544c8a07b572568e9a3a3f0f9f77.tar.bz2
[svn-r9598] 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.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/H5C.c b/src/H5C.c
index 120e2c1..af96125 100644
--- a/src/H5C.c
+++ b/src/H5C.c
@@ -2486,15 +2486,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;