From afb85e30e5874454fe890bb06c1a8cc67d2dc245 Mon Sep 17 00:00:00 2001 From: Mohamad Chaarawi Date: Mon, 15 Jun 2015 14:29:30 -0500 Subject: [svn-r27207] use "closing" flag instead of always TRUE in the truncate call. --- src/H5Fint.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. */ -- cgit v0.12