diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2004-11-29 21:01:20 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2004-11-29 21:01:20 (GMT) |
commit | 73df82dcdf83544c8a07b572568e9a3a3f0f9f77 (patch) | |
tree | b56fa674812962644fcc0cadf05e073d2685c6bf /src/H5C.c | |
parent | 51ed85b2775eba3923fb9b0c7ee887ff9284cc22 (diff) | |
download | hdf5-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.c | 10 |
1 files changed, 2 insertions, 8 deletions
@@ -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; |