summaryrefslogtreecommitdiffstats
path: root/src/H5AC.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2006-05-23 00:44:26 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2006-05-23 00:44:26 (GMT)
commitefe514d714294f9df3a2ad7aedb0001a16a4dfe2 (patch)
treed31afcb8e5df6d92d968796a74e5e01b8c905757 /src/H5AC.c
parent5d2bddcd0654b9f1ad548799e6828780a30b506c (diff)
downloadhdf5-efe514d714294f9df3a2ad7aedb0001a16a4dfe2.zip
hdf5-efe514d714294f9df3a2ad7aedb0001a16a4dfe2.tar.gz
hdf5-efe514d714294f9df3a2ad7aedb0001a16a4dfe2.tar.bz2
[svn-r12363] Purpose:
Bug fix Description: When destroying the cache for a file, don't disconnect the cache from the file structure until after the cache is shut dow, to allow pinned entries to be unpinned. Platforms tested: Linux 2.4 (chicago) Too minor to require h5committest
Diffstat (limited to 'src/H5AC.c')
-rw-r--r--src/H5AC.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5AC.c b/src/H5AC.c
index 0755566..d08c7df 100644
--- a/src/H5AC.c
+++ b/src/H5AC.c
@@ -763,13 +763,13 @@ H5AC_dest(H5F_t *f, hid_t dxpl_id)
}
#endif /* H5_HAVE_PARALLEL */
- f->shared->cache = NULL;
-
if ( H5C_dest(f, dxpl_id, H5AC_noblock_dxpl_id, cache) < 0 ) {
HGOTO_ERROR(H5E_CACHE, H5E_CANTFREE, FAIL, "can't destroy cache")
}
+ f->shared->cache = NULL;
+
#ifdef H5_HAVE_PARALLEL
if ( aux_ptr != NULL ) {