diff options
author | vchoi <vchoi@jelly.ad.hdfgroup.org> | 2021-12-21 18:25:32 (GMT) |
---|---|---|
committer | vchoi <vchoi@jelly.ad.hdfgroup.org> | 2021-12-21 18:25:32 (GMT) |
commit | cdc93ea7faa30084c6399b1a7cc5347e5654f860 (patch) | |
tree | e7f98fb474120199dd06207a81d581da281b8e82 /src/H5AC.c | |
parent | a30ca5afcd9f2e35b3a37f74286a6fe264b946f2 (diff) | |
download | hdf5-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.c | 31 |
1 files changed, 31 insertions, 0 deletions
@@ -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() */ |