Skip to content

Commit

Permalink
Don't allow H5Pset(get)_all_coll_metadata_ops for DXPLs (HDFGroup#1201)
Browse files Browse the repository at this point in the history
  • Loading branch information
jhendersonHDF committed Mar 24, 2022
1 parent a5d2e86 commit 5d71537
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/H5Pfapl.c
Original file line number Diff line number Diff line change
Expand Up @@ -4792,8 +4792,7 @@ H5Pset_all_coll_metadata_ops(hid_t plist_id, hbool_t is_collective)
/* (Dataset, group, attribute, and named datatype access property lists
* are sub-classes of link access property lists -QAK)
*/
if (TRUE != H5P_isa_class(plist_id, H5P_LINK_ACCESS) &&
TRUE != H5P_isa_class(plist_id, H5P_FILE_ACCESS) && TRUE != H5P_isa_class(plist_id, H5P_DATASET_XFER))
if (TRUE != H5P_isa_class(plist_id, H5P_LINK_ACCESS) && TRUE != H5P_isa_class(plist_id, H5P_FILE_ACCESS))
HGOTO_ERROR(H5E_PLIST, H5E_CANTREGISTER, FAIL, "property list is not an access plist")

/* set property to either TRUE if > 0, or FALSE otherwise */
Expand Down Expand Up @@ -4843,8 +4842,7 @@ H5Pget_all_coll_metadata_ops(hid_t plist_id, hbool_t *is_collective)
/* (Dataset, group, attribute, and named datatype access property lists
* are sub-classes of link access property lists -QAK)
*/
if (TRUE != H5P_isa_class(plist_id, H5P_LINK_ACCESS) &&
TRUE != H5P_isa_class(plist_id, H5P_FILE_ACCESS) && TRUE != H5P_isa_class(plist_id, H5P_DATASET_XFER))
if (TRUE != H5P_isa_class(plist_id, H5P_LINK_ACCESS) && TRUE != H5P_isa_class(plist_id, H5P_FILE_ACCESS))
HGOTO_ERROR(H5E_PLIST, H5E_CANTREGISTER, FAIL, "property list is not an access plist")

/* Get value */
Expand Down

0 comments on commit 5d71537

Please sign in to comment.