summaryrefslogtreecommitdiffstats
path: root/src/H5AC.c
diff options
context:
space:
mode:
authormainzer <mainzer#hdfgroup.org>2019-01-15 22:36:51 (GMT)
committermainzer <mainzer#hdfgroup.org>2019-01-15 22:36:51 (GMT)
commitb4f607bc13841c5366f232e16c776d700d15b5be (patch)
tree1aba531e6d30925e11aa6393a14a4c91a0e0dec8 /src/H5AC.c
parent4f8917f9086088ac5cc7fa3c3deb400afbf33b68 (diff)
downloadhdf5-b4f607bc13841c5366f232e16c776d700d15b5be.zip
hdf5-b4f607bc13841c5366f232e16c776d700d15b5be.tar.gz
hdf5-b4f607bc13841c5366f232e16c776d700d15b5be.tar.bz2
Intermin commit to allow update from Vailin's recent changes
Diffstat (limited to 'src/H5AC.c')
-rw-r--r--src/H5AC.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/H5AC.c b/src/H5AC.c
index d7f5002..a2ec13b 100644
--- a/src/H5AC.c
+++ b/src/H5AC.c
@@ -278,6 +278,11 @@ H5AC_cache_image_pending(const H5F_t *f)
* matzke@llnl.gov
* Jul 9 1997
*
+ * Changes: Added code to configrue the metadata cache for VFD SWMR
+ * reader operations when indicated.
+ *
+ * JRM -- 1/15/19
+ *
*-------------------------------------------------------------------------
*/
herr_t
@@ -418,6 +423,23 @@ H5AC_create(const H5F_t *f, H5AC_cache_config_t *config_ptr, H5AC_cache_image_co
HGOTO_ERROR(H5E_CACHE, H5E_SYSTEM, FAIL, "unable to emit log message")
} /* end if */
+ /* Configure the metadata cache for VFD SWMR reader operation if
+ * specified.
+ */
+ if ( ( H5F_VFD_SWMR_CONFIG(f) ) &&
+ ( !f->shared->vfd_swmr_config.vfd_swmr_writer ) ) {
+
+ HDassert(!(H5F_INTENT(f) & H5F_ACC_RDWR));
+ HDassert(f->shared->fs_page_size > 0);
+
+ if ( H5C_set_vfd_swmr_reader(f->shared->cache, TRUE,
+ f->shared->fs_page_size) < 0 )
+
+ HGOTO_ERROR(H5E_CACHE, H5E_CANTSET, FAIL, \
+ "can't configure MDC for VFD SWMR reader operations");
+
+ }
+
/* Set the cache parameters */
if(H5AC_set_cache_auto_resize_config(f->shared->cache, config_ptr) < 0)
HGOTO_ERROR(H5E_CACHE, H5E_CANTSET, FAIL, "auto resize configuration failed")