summaryrefslogtreecommitdiffstats
path: root/test/cache_tagging.c
diff options
context:
space:
mode:
authorJohn Mainzer <mainzer@hdfgroup.org>2020-08-17 13:25:05 (GMT)
committerJohn Mainzer <mainzer@hdfgroup.org>2020-08-17 13:25:05 (GMT)
commit5d8c5849e5a3fe2b6a1e7c7d218da301edcc8f09 (patch)
tree262f7a835c3ddc67d0fe3c0531dcd9002d143f5d /test/cache_tagging.c
parent0f9c22edc75715bd0a6e702b1c8c929650065d70 (diff)
parentd00bab96fb4da12a18b5de528c96469978c4c927 (diff)
downloadhdf5-5d8c5849e5a3fe2b6a1e7c7d218da301edcc8f09.zip
hdf5-5d8c5849e5a3fe2b6a1e7c7d218da301edcc8f09.tar.gz
hdf5-5d8c5849e5a3fe2b6a1e7c7d218da301edcc8f09.tar.bz2
Merge pull request #2769 in HDFFV/hdf5 from mdc_sl_opt to develop
* commit 'd00bab96fb4da12a18b5de528c96469978c4c927': Minor copy edits to comments -- no code changes. Tab to space conversions. When flushing, the metadata cache attempts to flush entries in increasing address order. To facilitate this, the metadata cache needs a list of of dirty entries in increasing address order. This is implemented via a skip list of all dirty entries in the cache.
Diffstat (limited to 'test/cache_tagging.c')
-rw-r--r--test/cache_tagging.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/test/cache_tagging.c b/test/cache_tagging.c
index 531138c..e1187fb 100644
--- a/test/cache_tagging.c
+++ b/test/cache_tagging.c
@@ -348,11 +348,20 @@ evict_entries(hid_t fid)
/* Mark all entries investigated */
mark_all_entries_investigated(fid);
+ /* setup the skip list prior to calling H5C_flush_cache() */
+ if ( H5C_set_slist_enabled(f->shared->cache, TRUE, FALSE) < 0 )
+ TEST_ERROR;
+
/* Evict all we can from the cache to examine full tag creation tree */
- /* This function will likely return failure since the root group
- * is still protected. Thus, don't check its return value. */
+ /* This function will likely return failure since the root group
+ * is still protected. Thus, don't check its return value.
+ */
H5C_flush_cache(f, H5C__FLUSH_INVALIDATE_FLAG);
+ /* shutdown the slist -- allow it to be non-empty */
+ if ( H5C_set_slist_enabled(f->shared->cache, FALSE, TRUE) < 0 )
+ TEST_ERROR;
+
return 0;
error: