summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Young <dyoung@hdfgroup.org>2020-04-16 21:20:56 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2020-04-16 21:20:56 (GMT)
commit9c6b5a270c1f55efadcf5cea0cf680f6105e2918 (patch)
treee712c504579363cfe86a15a7727c961284f048cb /src
parent98838cb0f3ccc7697dfb2a7e18ef4a5a0c3dfafd (diff)
downloadhdf5-9c6b5a270c1f55efadcf5cea0cf680f6105e2918.zip
hdf5-9c6b5a270c1f55efadcf5cea0cf680f6105e2918.tar.gz
hdf5-9c6b5a270c1f55efadcf5cea0cf680f6105e2918.tar.bz2
Re-enable reclamation of disused shadow-index entries.
Diffstat (limited to 'src')
-rw-r--r--src/H5Fvfd_swmr.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/H5Fvfd_swmr.c b/src/H5Fvfd_swmr.c
index 84c6409..c6bd7ee 100644
--- a/src/H5Fvfd_swmr.c
+++ b/src/H5Fvfd_swmr.c
@@ -743,7 +743,6 @@ done:
} /* H5F_vfd_swmr_writer__prep_for_flush_or_close() */
-#if 0
static int
clean_shadow_index(H5F_t *f, uint32_t nentries,
H5FD_vfd_swmr_idx_entry_t *idx, uint32_t *ndeletedp)
@@ -787,7 +786,6 @@ clean_shadow_index(H5F_t *f, uint32_t nentries,
*ndeletedp = ndeleted;
return 0;
}
-#endif
/*-------------------------------------------------------------------------
@@ -943,10 +941,10 @@ H5F_vfd_swmr_writer_end_of_tick(H5F_t *f)
* to the HDF5 file more than max_lag ticks ago, and haven't
* been modified since.
*/
-#if 0
- clean_shadow_index(f, f->shared->mdf_idx_entries_used + idx_entries_added,
- f->shared->mdf_idx, &idx_entries_removed);
-#endif
+ if (clean_shadow_index(f,
+ f->shared->mdf_idx_entries_used + idx_entries_added,
+ f->shared->mdf_idx, &idx_entries_removed) < 0)
+ HGOTO_ERROR(H5E_FILE, H5E_SYSTEM, FAIL, "can't clean shadow file index")
/* 6) Update the metadata file. Must do this before we
* release the tick list, as otherwise the page buffer