summaryrefslogtreecommitdiffstats
path: root/src/H5Fint.c
diff options
context:
space:
mode:
authorMohamad Chaarawi <chaarawi@hdfgroup.org>2015-06-26 14:51:47 (GMT)
committerMohamad Chaarawi <chaarawi@hdfgroup.org>2015-06-26 14:51:47 (GMT)
commit4a951a53063efa51d3dba672dccd8a59be78ac8f (patch)
treed66d2833fdd3e4a1b83e9521b957e99945c82659 /src/H5Fint.c
parent79fe6d27f022b0124782d6e0c6eb345f2e669095 (diff)
parentdf8bd7ccd6cd8d50280a3a7d862064c6340e2169 (diff)
downloadhdf5-4a951a53063efa51d3dba672dccd8a59be78ac8f.zip
hdf5-4a951a53063efa51d3dba672dccd8a59be78ac8f.tar.gz
hdf5-4a951a53063efa51d3dba672dccd8a59be78ac8f.tar.bz2
[svn-r27286] merge from trunk.
Diffstat (limited to 'src/H5Fint.c')
-rw-r--r--src/H5Fint.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/H5Fint.c b/src/H5Fint.c
index fd22977..4d4efa0 100644
--- a/src/H5Fint.c
+++ b/src/H5Fint.c
@@ -827,6 +827,14 @@ H5F_dest(H5F_t *f, hid_t dxpl_id, hbool_t flush)
HDONE_ERROR(H5E_CACHE, H5E_CANTFLUSH, FAIL, "unable to flush cache")
} /* end if */
+ /* if it exists, unpin the driver information block cache entry,
+ * since we're about to destroy the cache
+ */
+ if(f->shared->drvinfo)
+ if(H5AC_unpin_entry(f->shared->drvinfo) < 0)
+ /* Push error, but keep going*/
+ HDONE_ERROR(H5E_FSPACE, H5E_CANTUNPIN, FAIL, "unable to unpin drvinfo")
+
/* Unpin the superblock, since we're about to destroy the cache */
if(H5AC_unpin_entry(f->shared->sblock) < 0)
/* Push error, but keep going*/