diff options
author | Mohamad Chaarawi <chaarawi@hdfgroup.org> | 2014-07-29 18:46:19 (GMT) |
---|---|---|
committer | Mohamad Chaarawi <chaarawi@hdfgroup.org> | 2014-07-29 18:46:19 (GMT) |
commit | 4094dc843f1d42c71f4239e084e640454430ce3a (patch) | |
tree | 36b88358507430f973675defbeb2cf12e2a1a227 /src/H5VLnative.c | |
parent | 871d377e65de92637507295a05f67d52167e2af8 (diff) | |
download | hdf5-4094dc843f1d42c71f4239e084e640454430ce3a.zip hdf5-4094dc843f1d42c71f4239e084e640454430ce3a.tar.gz hdf5-4094dc843f1d42c71f4239e084e640454430ce3a.tar.bz2 |
[svn-r25488] - fix bug with H5Fget_access_plist. need to set VOL and VOL info in property
- add tests for H5Fis_accessible in vfd tests to make sure it works with different fapls.
- fix bug in Log VFD driver.
Diffstat (limited to 'src/H5VLnative.c')
-rw-r--r-- | src/H5VLnative.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/H5VLnative.c b/src/H5VLnative.c index 6dacb5e..c649650 100644 --- a/src/H5VLnative.c +++ b/src/H5VLnative.c @@ -2347,6 +2347,8 @@ H5VL_native_file_close(void *file, hid_t UNUSED dxpl_id, void UNUSED **req) FUNC_ENTER_NOAPI_NOINIT + HDassert(f->id_exists); /* This routine should only be called when a file ID's ref count drops to zero */ + /* Flush file if this is the last reference to this id and we have write * intent, unless it will be flushed by the "shared" file being closed. * This is only necessary to replicate previous behaviour, and could be @@ -2362,6 +2364,7 @@ H5VL_native_file_close(void *file, hid_t UNUSED dxpl_id, void UNUSED **req) if(H5F_flush(f, H5AC_dxpl_id, FALSE) < 0) HGOTO_ERROR(H5E_CACHE, H5E_CANTFLUSH, FAIL, "unable to flush cache") } /* end if */ + /* close the file */ if(H5F_close(f) < 0) HGOTO_ERROR(H5E_FILE, H5E_CANTDEC, FAIL, "can't close file") |