diff options
author | Larry Knox <lrknox@hdfgroup.org> | 2020-11-12 16:12:48 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-12 16:12:48 (GMT) |
commit | cfb82afb80dca259ac2cf96bf24a941d27869a52 (patch) | |
tree | 9cae0e6b8a1eddef72e0ff974bfeb34fc8eda258 | |
parent | 04e50c876cfa48458402b2fa8a412feed472b58e (diff) | |
parent | 37fb2ec29a788c308fd4acf21ebc0bd1447ebbef (diff) | |
download | hdf5-cfb82afb80dca259ac2cf96bf24a941d27869a52.zip hdf5-cfb82afb80dca259ac2cf96bf24a941d27869a52.tar.gz hdf5-cfb82afb80dca259ac2cf96bf24a941d27869a52.tar.bz2 |
Merge pull request #81 from jhendersonHDF/develop
Fix non-collective metadata read in t_mdset with collective metadata reads enabled
-rw-r--r-- | testpar/t_mdset.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/testpar/t_mdset.c b/testpar/t_mdset.c index a4bc26d..bf4ce73 100644 --- a/testpar/t_mdset.c +++ b/testpar/t_mdset.c @@ -1456,10 +1456,8 @@ read_attribute(hid_t obj_id, int this_type, int num) if (this_type == is_group) { HDsprintf(attr_name, "Group Attribute %d", num); aid = H5Aopen(obj_id, attr_name, H5P_DEFAULT); - if (MAINPROCESS) { - H5Aread(aid, H5T_NATIVE_INT, &in_num); - vrfy_errors = dataset_vrfy(NULL, NULL, NULL, group_block, &in_num, &num); - } + H5Aread(aid, H5T_NATIVE_INT, &in_num); + vrfy_errors = dataset_vrfy(NULL, NULL, NULL, group_block, &in_num, &num); H5Aclose(aid); } else if (this_type == is_dset) { @@ -1467,10 +1465,8 @@ read_attribute(hid_t obj_id, int this_type, int num) for (i = 0; i < 8; i++) out_data[i] = i; aid = H5Aopen(obj_id, attr_name, H5P_DEFAULT); - if (MAINPROCESS) { - H5Aread(aid, H5T_NATIVE_INT, in_data); - vrfy_errors = dataset_vrfy(NULL, NULL, NULL, dset_block, in_data, out_data); - } + H5Aread(aid, H5T_NATIVE_INT, in_data); + vrfy_errors = dataset_vrfy(NULL, NULL, NULL, dset_block, in_data, out_data); H5Aclose(aid); } |