mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-04-12 17:31:09 +08:00
[svn-r27207] use "closing" flag instead of always TRUE in the truncate call.
This commit is contained in:
parent
f34bdad87c
commit
afb85e30e5
@ -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. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user