summaryrefslogtreecommitdiffstats
path: root/src/H5Fint.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@koziol.gov>2019-08-26 19:38:58 (GMT)
committerQuincey Koziol <koziol@koziol.gov>2019-08-26 19:38:58 (GMT)
commit3090ac81506094ee510ae89c31749b5c1632aa34 (patch)
tree10ee129920e9a97629082664c01729815aeb38ee /src/H5Fint.c
parent884ad149e29f7c99487af676f0bbcd88cbf2735f (diff)
downloadhdf5-3090ac81506094ee510ae89c31749b5c1632aa34.zip
hdf5-3090ac81506094ee510ae89c31749b5c1632aa34.tar.gz
hdf5-3090ac81506094ee510ae89c31749b5c1632aa34.tar.bz2
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.c3
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.