summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@lbl.gov>2020-08-08 13:44:34 (GMT)
committerQuincey Koziol <koziol@lbl.gov>2020-08-08 13:44:34 (GMT)
commite1a7a1acbecea906951b9351577355cf93b192a8 (patch)
tree702b10eacebfdaa0bdd7d9c8fdbc20a2f56f3b81 /test
parent0d69520c70b2ec541af4196eef344bac89f6ebe2 (diff)
downloadhdf5-e1a7a1acbecea906951b9351577355cf93b192a8.zip
hdf5-e1a7a1acbecea906951b9351577355cf93b192a8.tar.gz
hdf5-e1a7a1acbecea906951b9351577355cf93b192a8.tar.bz2
Remove redundant calls to set the metadata cache tag
Diffstat (limited to 'test')
-rw-r--r--test/mf.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/mf.c b/test/mf.c
index 7cfc954..8e2f75c 100644
--- a/test/mf.c
+++ b/test/mf.c
@@ -7696,6 +7696,8 @@ test_page_alloc_xfree(const char *env_h5_drvr, hid_t fapl)
TEST_ERROR
if(fs_persist) {
+ haddr_t prv_tag = HADDR_UNDEF;
+
/* Re-open the file */
if((fid = H5Fopen(filename, H5F_ACC_RDWR, fapl_new)) < 0)
TEST_ERROR
@@ -7704,6 +7706,9 @@ test_page_alloc_xfree(const char *env_h5_drvr, hid_t fapl)
if(NULL == (f = (H5F_t *)H5VL_object(fid)))
TEST_ERROR
+ /* Set the freespace tag for the metadata cache */
+ H5AC_tag(H5AC__FREESPACE_TAG, &prv_tag); \
+
/* Verify that the large generic manager is there */
H5MF__alloc_to_fs_type(f->shared, H5FD_MEM_DRAW, TBLOCK_SIZE5000, (H5F_mem_page_t *)&fs_type);
if(!H5F_addr_defined(f->shared->fs_addr[fs_type]))
@@ -7754,6 +7759,9 @@ test_page_alloc_xfree(const char *env_h5_drvr, hid_t fapl)
if(found_addr != gaddr1)
TEST_ERROR
+ /* Reset the previous tag */
+ H5AC_tag(prv_tag, NULL); \
+
/* Close file */
if(H5Fclose(fid) < 0)
TEST_ERROR