diff options
author | Jordan Henderson <jhenderson@hdfgroup.org> | 2020-01-03 23:29:30 (GMT) |
---|---|---|
committer | Jordan Henderson <jhenderson@hdfgroup.org> | 2020-01-03 23:29:30 (GMT) |
commit | 99e990e1ee8b6610793b8a2eb87bd2e2c77ab020 (patch) | |
tree | c64767e1b87851109fc0cfa8acc6aac633a24735 /src/H5L.c | |
parent | 041b14c876cc7466da7868ef563563c879951ad6 (diff) | |
parent | ccf177344ae2d4b03802adecc08a6cc956a7dac5 (diff) | |
download | hdf5-99e990e1ee8b6610793b8a2eb87bd2e2c77ab020.zip hdf5-99e990e1ee8b6610793b8a2eb87bd2e2c77ab020.tar.gz hdf5-99e990e1ee8b6610793b8a2eb87bd2e2c77ab020.tar.bz2 |
Merge pull request #2226 in HDFFV/hdf5 from ~JHENDERSON/hdf5:develop to develop
* commit 'ccf177344ae2d4b03802adecc08a6cc956a7dac5':
Fix some places where H5P_DEFAULT gets passed down to a VOL connector
Diffstat (limited to 'src/H5L.c')
-rw-r--r-- | src/H5L.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -486,6 +486,10 @@ H5Lcreate_soft(const char *link_target, hid_t link_loc_id, const char *link_name /* 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, link_loc_id, TRUE) < 0) + HGOTO_ERROR(H5E_LINK, H5E_CANTSET, FAIL, "can't set access property list info") + /* Set location fields */ loc_params.type = H5VL_OBJECT_BY_NAME; loc_params.loc_data.loc_by_name.name = link_name; @@ -496,10 +500,6 @@ H5Lcreate_soft(const char *link_target, hid_t link_loc_id, const char *link_name if(NULL == (vol_obj = (H5VL_object_t *)H5VL_vol_object(link_loc_id))) HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "invalid location identifier") - /* Verify access property list and set up collective metadata if appropriate */ - if(H5CX_set_apl(&lapl_id, H5P_CLS_LACC, link_loc_id, TRUE) < 0) - HGOTO_ERROR(H5E_LINK, H5E_CANTSET, FAIL, "can't set access property list info") - /* Create the link */ if(H5VL_link_create(H5VL_LINK_CREATE_SOFT, vol_obj, &loc_params, lcpl_id, lapl_id, H5P_DATASET_XFER_DEFAULT, H5_REQUEST_NULL, link_target) < 0) HGOTO_ERROR(H5E_LINK, H5E_CANTCREATE, FAIL, "unable to create soft link") |