summaryrefslogtreecommitdiffstats
path: root/src/H5Fint.c
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2020-08-18 02:58:35 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2020-08-18 02:58:35 (GMT)
commit30574df1655e212721746db9a21fd432503eb5c1 (patch)
tree733273542c5f40ec53a0b78069f0e92f625a8d2c /src/H5Fint.c
parent0997b12cf5b8d0638c03478eedf00e641946d7c4 (diff)
parentb11c33184f52167d339a6771bc2590adf38b0c85 (diff)
downloadhdf5-30574df1655e212721746db9a21fd432503eb5c1.zip
hdf5-30574df1655e212721746db9a21fd432503eb5c1.tar.gz
hdf5-30574df1655e212721746db9a21fd432503eb5c1.tar.bz2
Merge branch 'hdf5_1_10' into h5f_start_swmr_write_locks
Diffstat (limited to 'src/H5Fint.c')
-rw-r--r--src/H5Fint.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/H5Fint.c b/src/H5Fint.c
index 38bff57..2b030e7 100644
--- a/src/H5Fint.c
+++ b/src/H5Fint.c
@@ -1974,6 +1974,11 @@ H5F__flush_phase2(H5F_t *f, hbool_t closing)
/* Sanity check arguments */
HDassert(f);
+ /* Inform the metadata cache that we are about to flush */
+ if(H5AC_prep_for_file_flush(f) < 0)
+ /* Push error, but keep going*/
+ HDONE_ERROR(H5E_CACHE, H5E_CANTFLUSH, FAIL, "prep for MDC flush failed")
+
/* Flush the entire metadata cache */
if(H5AC_flush(f) < 0)
/* Push error, but keep going*/
@@ -2006,6 +2011,11 @@ H5F__flush_phase2(H5F_t *f, hbool_t closing)
H5CX_set_mpi_file_flushing(FALSE);
#endif /* H5_HAVE_PARALLEL */
+ /* Inform the metadata cache that we are done with the flush */
+ if(H5AC_secure_from_file_flush(f) < 0)
+ /* Push error, but keep going*/
+ HDONE_ERROR(H5E_CACHE, H5E_CANTFLUSH, FAIL, "secure from MDC flush failed")
+
/* Flush out the metadata accumulator */
if(H5F__accum_flush(f->shared) < 0)
/* Push error, but keep going*/