diff options
author | Quincey Koziol <koziol@lbl.gov> | 2019-08-26 22:25:17 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@lbl.gov> | 2019-08-26 22:25:17 (GMT) |
commit | 6e8c48182fe463721f23597b64127863291cb35a (patch) | |
tree | f38d2cc8bf0ffe40d964c753d96dca6642b9febf /src/H5Fint.c | |
parent | a367340a17fd87e7e4e60220ad36a02fb63114e4 (diff) | |
parent | 3090ac81506094ee510ae89c31749b5c1632aa34 (diff) | |
download | hdf5-6e8c48182fe463721f23597b64127863291cb35a.zip hdf5-6e8c48182fe463721f23597b64127863291cb35a.tar.gz hdf5-6e8c48182fe463721f23597b64127863291cb35a.tar.bz2 |
Merge pull request #1897 in HDFFV/hdf5 from ~KOZIOL/hdf5:refactor_file to develop
* commit '3090ac81506094ee510ae89c31749b5c1632aa34':
Add a 'closing' flag on the shared file struct, and switch several of the "internal" data structures to use it.
Diffstat (limited to 'src/H5Fint.c')
-rw-r--r-- | src/H5Fint.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/H5Fint.c b/src/H5Fint.c index 9b31d7e..c56bd10 100644 --- a/src/H5Fint.c +++ b/src/H5Fint.c @@ -1175,6 +1175,9 @@ H5F__dest(H5F_t *f, hbool_t flush) if(1 == f->shared->nrefs) { int actype; /* metadata cache type (enum value) */ + /* Mark this file as closing */ + f->shared->closing = TRUE; + /* Flush at this point since the file will be closed (phase 1). * Only try to flush the file if it was opened with write access, and if * the caller requested a flush. |