diff options
author | Chris Hogan <chogan@hdfgroup.org> | 2019-10-28 21:24:54 (GMT) |
---|---|---|
committer | Chris Hogan <chogan@hdfgroup.org> | 2019-10-29 16:46:48 (GMT) |
commit | f8ab081b1f1abcbf76c151d7960ee97a556b4be9 (patch) | |
tree | d973514a5217823c70b29499f569dccb709afa7e /src/H5O.c | |
parent | afd4b291315e39e3966eadaf8ae9894b30e9504e (diff) | |
download | hdf5-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/H5O.c')
-rw-r--r-- | src/H5O.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -360,10 +360,13 @@ H5Olink(hid_t obj_id, hid_t new_loc_id, const char *new_name, hid_t lcpl_id, if(lcpl_id != H5P_DEFAULT && (TRUE != H5P_isa_class(lcpl_id, H5P_LINK_CREATE))) HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a link creation property list") - /* Check the group access property list */ + /* Get the link creation property list */ if(H5P_DEFAULT == lcpl_id) lcpl_id = H5P_LINK_CREATE_DEFAULT; + /* 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(&lapl_id, H5P_CLS_LACC, obj_id, TRUE) < 0) HGOTO_ERROR(H5E_OHDR, H5E_CANTSET, FAIL, "can't set access property list info") |