summaryrefslogtreecommitdiffstats
path: root/src/H5Dint.c
diff options
context:
space:
mode:
authorChris Hogan <chogan@hdfgroup.org>2019-11-27 22:40:07 (GMT)
committerChris Hogan <chogan@hdfgroup.org>2019-11-27 22:40:07 (GMT)
commit91b2ae219cd631798f95f0a94e793f2a2366b618 (patch)
treea31ba9c4ea658713335183488fc776250187d0cf /src/H5Dint.c
parentb1f884f5a4f48a023f9aeb2eba1426299f348a49 (diff)
parent54697cc596e7734c5890e58414833e97f5438861 (diff)
downloadhdf5-91b2ae219cd631798f95f0a94e793f2a2366b618.zip
hdf5-91b2ae219cd631798f95f0a94e793f2a2366b618.tar.gz
hdf5-91b2ae219cd631798f95f0a94e793f2a2366b618.tar.bz2
Merge pull request #2061 in HDFFV/hdf5 from ~CHOGAN/hdf5:feature/1.10/cx_lcpl to hdf5_1_10
* commit '54697cc596e7734c5890e58414833e97f5438861': Set the dcpl for the context on dataset creation Add DCPL to H5CX Check for both default values Use H5CX for LCPL property retrieval
Diffstat (limited to 'src/H5Dint.c')
-rw-r--r--src/H5Dint.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/H5Dint.c b/src/H5Dint.c
index a54333f..8313d9a 100644
--- a/src/H5Dint.c
+++ b/src/H5Dint.c
@@ -459,6 +459,9 @@ H5D__new(hid_t dcpl_id, hbool_t creating, hbool_t vl_type)
new_dset->dcpl_id = H5P_copy_plist(plist, FALSE);
} /* end else */
+ /* Set the DCPL for the API context */
+ H5CX_set_dcpl(new_dset->dcpl_id);
+
/* Set return value */
ret_value = new_dset;
@@ -657,11 +660,9 @@ H5D__use_minimized_dset_headers(H5F_t *file, H5D_t *dset, hbool_t *minimize)
HDassert(dset);
HDassert(minimize);
- plist = H5P_object_verify(dset->shared->dcpl_id, H5P_DATASET_CREATE);
- if(NULL == plist)
- HGOTO_ERROR(H5E_PLIST, H5E_CANTGET, FAIL, "problem getting dcpl")
- if(H5P_get(plist, H5D_CRT_MIN_DSET_HDR_SIZE_NAME, minimize) == FAIL)
- HGOTO_ERROR(H5E_PLIST, H5E_CANTGET, FAIL, "can't get minimize value from dcpl")
+ /* Get the dataset object header minimize flag for this call */
+ if(H5CX_get_dset_min_ohdr_flag(minimize) < 0)
+ HGOTO_ERROR(H5E_DATASET, H5E_CANTGET, FAIL, "can't get dataset object header minimize flag from API context")
if(FALSE == *minimize)
*minimize = H5F_get_min_dset_ohdr(file);