diff options
author | Dana Robinson <derobins@hdfgroup.org> | 2020-08-17 17:05:05 (GMT) |
---|---|---|
committer | Dana Robinson <derobins@hdfgroup.org> | 2020-08-17 17:05:05 (GMT) |
commit | 90fa429c015649fee878530817e503393e9f269c (patch) | |
tree | 781be81d7b4f943807b41741eddf957810edd855 /src/H5Fint.c | |
parent | 9457d3d4b41e356121ca2b4d72a199b91b8254af (diff) | |
download | hdf5-90fa429c015649fee878530817e503393e9f269c.zip hdf5-90fa429c015649fee878530817e503393e9f269c.tar.gz hdf5-90fa429c015649fee878530817e503393e9f269c.tar.bz2 |
Brings the MDC skiplist optimizations from develop
Diffstat (limited to 'src/H5Fint.c')
-rw-r--r-- | src/H5Fint.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/H5Fint.c b/src/H5Fint.c index 29bbd45..9dad1d7 100644 --- a/src/H5Fint.c +++ b/src/H5Fint.c @@ -1971,6 +1971,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*/ @@ -2003,6 +2008,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*/ |