mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-02-23 16:20:57 +08:00
Formatting adjustments.
This commit is contained in:
parent
507d9423c8
commit
7541ed1fc7
@ -925,9 +925,10 @@ H5D__update_oh_info(H5F_t *file, H5D_t *dset, hid_t dapl_id)
|
||||
if(H5D__use_minimized_dset_headers(file, dset, &minimize_header) == FAIL)
|
||||
HGOTO_ERROR(H5E_ARGS, H5E_CANTGET, FAIL, "can't get minimize settings")
|
||||
|
||||
if((TRUE == minimize_header) && (H5D__prepare_minimized_oh(file, dset, oloc) == FAIL)
|
||||
if(TRUE == minimize_header) {
|
||||
if(H5D__prepare_minimized_oh(file, dset, oloc) == FAIL)
|
||||
HGOTO_ERROR(H5E_DATASET, H5E_CANTINIT, FAIL, "can't create minimized dataset object header")
|
||||
else {
|
||||
} else {
|
||||
/* Add the dataset's raw data size to the size of the header, if the
|
||||
* raw data will be stored as compact
|
||||
*/
|
||||
|
@ -1858,13 +1858,8 @@ H5Fget_dset_no_attrs_hint(hid_t file_id, hbool_t *minimize)
|
||||
if(NULL == vol_obj)
|
||||
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "invalid file identifier")
|
||||
|
||||
#if 0
|
||||
if(H5VL_file_get(vol_obj, H5VL_FILE_GET_MIN_DSET_OHDR_FLAG, H5P_DATASET_XFER_DEFAULT, H5_REQUEST_NULL, minimize) < 0)
|
||||
HGOTO_ERROR(H5E_FILE, H5E_CANTGET, FAIL, "unable to get file's dataset header minimization flag")
|
||||
#else
|
||||
if(H5VL_file_optional(vol_obj, H5P_DATASET_XFER_DEFAULT, H5_REQUEST_NULL, H5VL_NATIVE_FILE_GET_MIN_DSET_OHDR_FLAG, minimize) < 0)
|
||||
HGOTO_ERROR(H5E_FILE, H5E_CANTSET, FAIL, "unable to set file's dataset header minimization flag")
|
||||
#endif
|
||||
|
||||
done:
|
||||
FUNC_LEAVE_API(ret_value)
|
||||
|
443
test/dsets.c
443
test/dsets.c
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user