summaryrefslogtreecommitdiffstats
path: root/src/H5AC.c
diff options
context:
space:
mode:
authorvchoi <vchoi@jelly.ad.hdfgroup.org>2021-12-21 18:25:32 (GMT)
committervchoi <vchoi@jelly.ad.hdfgroup.org>2021-12-21 18:25:32 (GMT)
commitcdc93ea7faa30084c6399b1a7cc5347e5654f860 (patch)
treee7f98fb474120199dd06207a81d581da281b8e82 /src/H5AC.c
parenta30ca5afcd9f2e35b3a37f74286a6fe264b946f2 (diff)
downloadhdf5-cdc93ea7faa30084c6399b1a7cc5347e5654f860.zip
hdf5-cdc93ea7faa30084c6399b1a7cc5347e5654f860.tar.gz
hdf5-cdc93ea7faa30084c6399b1a7cc5347e5654f860.tar.bz2
Address issue #1 and issue #3 of the group test failures.
See Kent's documentation "Designed to Fail Tests and Issues". (A) Fix for issue #1: HDassert the < and = cases between old and new entry length. John will take care of the > case. (B) Fix for issue #3: set the cache copy of page_size again if different from f->shared->fs_page_size.
Diffstat (limited to 'src/H5AC.c')
-rw-r--r--src/H5AC.c31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/H5AC.c b/src/H5AC.c
index c913805..7e1f19b 100644
--- a/src/H5AC.c
+++ b/src/H5AC.c
@@ -2777,3 +2777,34 @@ H5AC_get_mdc_image_info(const H5AC_t *cache_ptr, haddr_t *image_addr, hsize_t *i
done:
FUNC_LEAVE_NOAPI(ret_value)
} /* H5AC_get_mdc_image_info() */
+
+/*-------------------------------------------------------------------------
+ * Function: H5AC_set_vfd_swmr_reader
+ *
+ * Purpose: Wrapper function for H5C_set_vfd_swmr_reader().
+ *
+ * Return: SUCCEED on success, and FAIL on failure.
+ *
+ * Programmer: Vailin Choi; Dec 2021
+ *
+ *-------------------------------------------------------------------------
+ */
+herr_t
+H5AC_set_vfd_swmr_reader(H5AC_t *cache_ptr, hbool_t vfd_swmr_reader, hsize_t page_size)
+{
+ herr_t ret_value = SUCCEED; /* Return value */
+
+ FUNC_ENTER_NOAPI(FAIL)
+
+ /* Sanity checks */
+ HDassert(cache_ptr);
+
+ if(cache_ptr->page_size != page_size) {
+
+ if (H5C_set_vfd_swmr_reader((H5C_t *)cache_ptr, vfd_swmr_reader, page_size) < 0)
+ HGOTO_ERROR(H5E_CACHE, H5E_CANTSET, FAIL, "can't set page_size for VFD SWMR reader")
+ }
+
+done:
+ FUNC_LEAVE_NOAPI(ret_value)
+} /* H5AC_set_vfd_swmr_reader() */