summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMohamad Chaarawi <chaarawi@hdfgroup.org>2015-06-15 19:29:30 (GMT)
committerMohamad Chaarawi <chaarawi@hdfgroup.org>2015-06-15 19:29:30 (GMT)
commitafb85e30e5874454fe890bb06c1a8cc67d2dc245 (patch)
treebb4eec4ba34fbc357fde9276ebea8140283f0941
parentf34bdad87c4af43bd09a6b9e6f8859cb268ce6ec (diff)
downloadhdf5-afb85e30e5874454fe890bb06c1a8cc67d2dc245.zip
hdf5-afb85e30e5874454fe890bb06c1a8cc67d2dc245.tar.gz
hdf5-afb85e30e5874454fe890bb06c1a8cc67d2dc245.tar.bz2
[svn-r27207] use "closing" flag instead of always TRUE in the truncate call.
-rw-r--r--src/H5Fint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5Fint.c b/src/H5Fint.c
index 94d76cc..df8e886 100644
--- a/src/H5Fint.c
+++ b/src/H5Fint.c
@@ -1175,7 +1175,7 @@ H5F_flush(H5F_t *f, hid_t dxpl_id, hbool_t closing)
HDONE_ERROR(H5E_CACHE, H5E_CANTFLUSH, FAIL, "unable to flush metadata cache")
/* Truncate the file to the current allocated size */
- if(H5FD_truncate(f->shared->lf, dxpl_id, (unsigned)TRUE) < 0)
+ if(H5FD_truncate(f->shared->lf, dxpl_id, closing) < 0)
HDONE_ERROR(H5E_FILE, H5E_WRITEERROR, FAIL, "low level truncate failed")
/* Flush the entire metadata cache again since the EOA could have changed in the truncate call. */