summaryrefslogtreecommitdiffstats
path: root/src/H5Dint.c
diff options
context:
space:
mode:
authorChris Hogan <chogan@hdfgroup.org>2019-11-27 22:16:45 (GMT)
committerChris Hogan <chogan@hdfgroup.org>2019-11-27 22:16:45 (GMT)
commit6f5e5243c789c74086623c16828e7ff55197c3a3 (patch)
tree5861ab33e673a348479d781d47205be0accbef6c /src/H5Dint.c
parent5c50be3c0f3158a04564d4340cad1bd5eeb03799 (diff)
downloadhdf5-6f5e5243c789c74086623c16828e7ff55197c3a3.zip
hdf5-6f5e5243c789c74086623c16828e7ff55197c3a3.tar.gz
hdf5-6f5e5243c789c74086623c16828e7ff55197c3a3.tar.bz2
Add DCPL to H5CX
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);