summaryrefslogtreecommitdiffstats
path: root/test/cache_tagging.c
diff options
context:
space:
mode:
authorNeil Fortner <fortnern@gmail.com>2024-02-23 17:06:06 (GMT)
committerGitHub <noreply@github.com>2024-02-23 17:06:06 (GMT)
commit560e80c0ad8494a2e070aafde9cbcff11de99219 (patch)
tree5ddb917d293eb80471e66fb98fe88a159b0419e5 /test/cache_tagging.c
parent3fd1e90df69462a0d55b5d830e8eee663fcb44bb (diff)
downloadhdf5-560e80c0ad8494a2e070aafde9cbcff11de99219.zip
hdf5-560e80c0ad8494a2e070aafde9cbcff11de99219.tar.gz
hdf5-560e80c0ad8494a2e070aafde9cbcff11de99219.tar.bz2
Improve performance of flushing single objects (#4017)
Improve performance of flushing a single object, and remove metadata cache flush markers
Diffstat (limited to 'test/cache_tagging.c')
-rw-r--r--test/cache_tagging.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/test/cache_tagging.c b/test/cache_tagging.c
index 61b1dbe..9a86b8a 100644
--- a/test/cache_tagging.c
+++ b/test/cache_tagging.c
@@ -264,10 +264,7 @@ error:
*
* Purpose: Asserts that there is an entry in the specified cache with
* the provided entry id and provided tag. The function will
- * fail if this is not the case. If found, this function will
- * set the entry's flush_marker flag, so future verification
- * attempts can skip over this entry, knowing it has already been
- * checked.
+ * fail if this is not the case.
*
* Return: 0 on Success, -1 on Failure
*
@@ -328,7 +325,7 @@ evict_entries(hid_t fid)
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)
+ if (H5C_set_slist_enabled(f->shared->cache, true, true) < 0)
TEST_ERROR;
/* Evict all we can from the cache to examine full tag creation tree */
@@ -337,8 +334,8 @@ evict_entries(hid_t fid)
*/
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)
+ /* shutdown the slist */
+ if (H5C_set_slist_enabled(f->shared->cache, false, false) < 0)
TEST_ERROR;
return 0;