summaryrefslogtreecommitdiffstats
path: root/src/H5Atest.c
diff options
context:
space:
mode:
authorNeil Fortner <nfortne2@hdfgroup.org>2009-02-12 19:09:10 (GMT)
committerNeil Fortner <nfortne2@hdfgroup.org>2009-02-12 19:09:10 (GMT)
commit5a6c75cc585c8e16277e235aa4240ff5b9ff8763 (patch)
treec5a92e1c6c11ae21c03a0df420dcdc15acc912b1 /src/H5Atest.c
parent582afd39e30142ace3e192ebe0a575ff9ba3413c (diff)
downloadhdf5-5a6c75cc585c8e16277e235aa4240ff5b9ff8763.zip
hdf5-5a6c75cc585c8e16277e235aa4240ff5b9ff8763.tar.gz
hdf5-5a6c75cc585c8e16277e235aa4240ff5b9ff8763.tar.bz2
[svn-r16478] Purpose: Fix problem with opening an attribute multiple times through multiple
file handles. Description: An attribute's "oloc" field which specifies the file it resides in was located in the attribute's "shared" structure. So when an attribute was opened multiple times all of the handles for that attribute pointed to the same file id, even if different file id's were used to open the different handles for the attribute. The "oloc" has been moved to the top level H5A_t struct. Tested: jam, smirom (h5committest)
Diffstat (limited to 'src/H5Atest.c')
-rw-r--r--src/H5Atest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5Atest.c b/src/H5Atest.c
index de03a25..df88472 100644
--- a/src/H5Atest.c
+++ b/src/H5Atest.c
@@ -139,7 +139,7 @@ H5A_get_shared_rc_test(hid_t attr_id, hsize_t *ref_count)
HDassert(H5O_msg_is_shared(H5O_ATTR_ID, attr));
/* Retrieve ref count for shared or shareable attribute */
- if(H5SM_get_refcount(attr->shared->oloc.file, H5AC_ind_dxpl_id, H5O_ATTR_ID,
+ if(H5SM_get_refcount(attr->oloc.file, H5AC_ind_dxpl_id, H5O_ATTR_ID,
&attr->sh_loc, ref_count) < 0)
HGOTO_ERROR(H5E_ATTR, H5E_CANTGET, FAIL, "can't retrieve shared message ref count")