diff options
author | Jordan Henderson <jhenderson@hdfgroup.org> | 2020-11-11 23:10:41 (GMT) |
---|---|---|
committer | Jordan Henderson <jhenderson@hdfgroup.org> | 2020-11-11 23:10:41 (GMT) |
commit | 37fb2ec29a788c308fd4acf21ebc0bd1447ebbef (patch) | |
tree | fa093f641f33b72d601de6676ec4676713f08367 /testpar/t_mdset.c | |
parent | 0b6067574b673908c09dd9d487e0592103c828e4 (diff) | |
download | hdf5-37fb2ec29a788c308fd4acf21ebc0bd1447ebbef.zip hdf5-37fb2ec29a788c308fd4acf21ebc0bd1447ebbef.tar.gz hdf5-37fb2ec29a788c308fd4acf21ebc0bd1447ebbef.tar.bz2 |
Fix non-collective metadata read in t_mdset with collective metadata reads enabled
Diffstat (limited to 'testpar/t_mdset.c')
-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); } |