summaryrefslogtreecommitdiffstats
path: root/src/H5P.c
diff options
context:
space:
mode:
authorVailin Choi <vchoi@jam.ad.hdfgroup.org>2018-03-12 04:12:30 (GMT)
committerVailin Choi <vchoi@jam.ad.hdfgroup.org>2018-03-12 04:12:30 (GMT)
commit83de2a580b1b6a67e604ae8336eb078741b4d7db (patch)
treee5e3f3aebbc30c67aff5eb65818c39bf6030bc81 /src/H5P.c
parent6b99b7b02edfbeba9c12f608839c91ba0a0d87b0 (diff)
downloadhdf5-83de2a580b1b6a67e604ae8336eb078741b4d7db.zip
hdf5-83de2a580b1b6a67e604ae8336eb078741b4d7db.tar.gz
hdf5-83de2a580b1b6a67e604ae8336eb078741b4d7db.tar.bz2
Re-factor coding for H5P/Sencode with libver bounds.
Diffstat (limited to 'src/H5P.c')
-rw-r--r--src/H5P.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/src/H5P.c b/src/H5P.c
index 4dcd305..fe9a70a 100644
--- a/src/H5P.c
+++ b/src/H5P.c
@@ -853,21 +853,8 @@ H5Pencode(hid_t plist_id, void *buf, size_t *nalloc)
if(NULL == (plist = (H5P_genplist_t *)H5I_object_verify(plist_id, H5I_GENPROP_LST)))
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a property list");
- /* Make a copy of the default file access property list */
- if(NULL == (fapl_plist = (H5P_genplist_t *)H5I_object(H5P_LST_FILE_ACCESS_ID_g)))
- HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a property list")
- if((new_fapl_id = H5P_copy_plist(fapl_plist, FALSE)) < 0)
- HGOTO_ERROR(H5E_INTERNAL, H5E_CANTINIT, FAIL, "can't copy file access property list")
-
- /* Set latest format in fapl_plist */
- /* This will eventually be used by VDS to encode datasets via H5P__dcrt_layout_enc() */
- if(H5P_set(fapl_plist, H5F_ACS_LIBVER_LOW_BOUND_NAME, &low_bound) < 0)
- HGOTO_ERROR(H5E_PLIST, H5E_CANTSET, FAIL, "can't set 'low' bound for library format versions")
- if(H5P_set(fapl_plist, H5F_ACS_LIBVER_HIGH_BOUND_NAME, &high_bound) < 0)
- HGOTO_ERROR(H5E_PLIST, H5E_CANTSET, FAIL, "can't set 'high' bound for library format versions")
-
/* Call the internal encode routine */
- if((ret_value = H5P__encode(plist, TRUE, buf, nalloc, new_fapl_id)) < 0)
+ if((ret_value = H5P__encode(plist, TRUE, buf, nalloc, H5P_FILE_ACCESS_DEFAULT)) < 0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTENCODE, FAIL, "unable to encode property list");
done: