diff options
author | Neil Fortner <nfortne2@hdfgroup.org> | 2015-07-02 17:04:19 (GMT) |
---|---|---|
committer | Neil Fortner <nfortne2@hdfgroup.org> | 2015-07-02 17:04:19 (GMT) |
commit | 3c4dd5fa530555ab8a0d4c84d3d880aafe158346 (patch) | |
tree | bc664a21890174154b0ee4c372907952c4518931 /src/H5Dint.c | |
parent | 364c193744a84058038b54f4ae08317aee081b55 (diff) | |
download | hdf5-3c4dd5fa530555ab8a0d4c84d3d880aafe158346.zip hdf5-3c4dd5fa530555ab8a0d4c84d3d880aafe158346.tar.gz hdf5-3c4dd5fa530555ab8a0d4c84d3d880aafe158346.tar.bz2 |
[svn-r27323] Implement support for H5Dflush for VDS.
Implement support for H5Ocopy on VDS.
Testing for H5Ocopy on VDS.
Fix check-vfd failure.
Other minor fixes/cleanup.
Note there is a preexisting failure in h5repack testing.
Tested: ummon
Diffstat (limited to 'src/H5Dint.c')
-rw-r--r-- | src/H5Dint.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/H5Dint.c b/src/H5Dint.c index 10fa4ca..657f893 100644 --- a/src/H5Dint.c +++ b/src/H5Dint.c @@ -1591,13 +1591,6 @@ H5D_close(H5D_t *dataset) #endif /* NDEBUG */ } /* end switch */ /*lint !e788 All appropriate cases are covered */ - /* - * Release datatype, dataspace and creation property list -- there isn't - * much we can do if one of these fails, so we just continue. - */ - free_failed = (unsigned)(H5I_dec_ref(dataset->shared->type_id) < 0 || H5S_close(dataset->shared->space) < 0 || - H5I_dec_ref(dataset->shared->dcpl_id) < 0); - /* Remove the dataset from the list of opened objects in the file */ if(H5FO_top_decr(dataset->oloc.file, dataset->oloc.addr) < 0) HGOTO_ERROR(H5E_DATASET, H5E_CANTRELEASE, FAIL, "can't decrement count for object") @@ -1610,6 +1603,13 @@ H5D_close(H5D_t *dataset) HGOTO_ERROR(H5E_DATASET, H5E_CLOSEERROR, FAIL, "unable to release object header") /* + * Release datatype, dataspace and creation property list -- there isn't + * much we can do if one of these fails, so we just continue. + */ + free_failed = (unsigned)(H5I_dec_ref(dataset->shared->type_id) < 0 || H5S_close(dataset->shared->space) < 0 || + H5I_dec_ref(dataset->shared->dcpl_id) < 0); + + /* * Free memory. Before freeing the memory set the file pointer to NULL. * We always check for a null file pointer in other H5D functions to be * sure we're not accessing an already freed dataset (see the HDassert() |