summaryrefslogtreecommitdiffstats
path: root/src/H5Tcommit.c
diff options
context:
space:
mode:
authorChris Hogan <chogan@hdfgroup.org>2019-10-28 21:24:54 (GMT)
committerChris Hogan <chogan@hdfgroup.org>2019-10-29 16:46:48 (GMT)
commitf8ab081b1f1abcbf76c151d7960ee97a556b4be9 (patch)
treed973514a5217823c70b29499f569dccb709afa7e /src/H5Tcommit.c
parentafd4b291315e39e3966eadaf8ae9894b30e9504e (diff)
downloadhdf5-f8ab081b1f1abcbf76c151d7960ee97a556b4be9.zip
hdf5-f8ab081b1f1abcbf76c151d7960ee97a556b4be9.tar.gz
hdf5-f8ab081b1f1abcbf76c151d7960ee97a556b4be9.tar.bz2
Use API context to store/retrieve LCPL when creating intermediate groups
Diffstat (limited to 'src/H5Tcommit.c')
-rw-r--r--src/H5Tcommit.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/H5Tcommit.c b/src/H5Tcommit.c
index c6b85a5..f099682 100644
--- a/src/H5Tcommit.c
+++ b/src/H5Tcommit.c
@@ -137,6 +137,9 @@ H5Tcommit2(hid_t loc_id, const char *name, hid_t type_id, hid_t lcpl_id,
if(TRUE != H5P_isa_class(tcpl_id, H5P_DATATYPE_CREATE))
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not datatype creation property list")
+ /* Set the LCPL for the API context */
+ H5CX_set_lcpl(lcpl_id);
+
/* Verify access property list and set up collective metadata if appropriate */
if(H5CX_set_apl(&tapl_id, H5P_CLS_TACC, loc_id, TRUE) < 0)
HGOTO_ERROR(H5E_DATATYPE, H5E_CANTSET, FAIL, "can't set access property list info")