diff options
author | Chris Hogan <chogan@hdfgroup.org> | 2019-11-27 16:56:52 (GMT) |
---|---|---|
committer | Chris Hogan <chogan@hdfgroup.org> | 2019-11-27 16:56:52 (GMT) |
commit | bbc37549dafd31f9a7ea45bff26702e1a0346c32 (patch) | |
tree | 72cd00db490b9d2e157582c3b289b6521cc05258 /src/H5O.c | |
parent | b1f884f5a4f48a023f9aeb2eba1426299f348a49 (diff) | |
download | hdf5-bbc37549dafd31f9a7ea45bff26702e1a0346c32.zip hdf5-bbc37549dafd31f9a7ea45bff26702e1a0346c32.tar.gz hdf5-bbc37549dafd31f9a7ea45bff26702e1a0346c32.tar.bz2 |
Use H5CX for LCPL property retrieval
Diffstat (limited to 'src/H5O.c')
-rw-r--r-- | src/H5O.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -288,6 +288,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 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") |