summaryrefslogtreecommitdiffstats
path: root/src/H5Atest.c
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2008-07-07 17:00:03 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2008-07-07 17:00:03 (GMT)
commit9f56d7f5ab7af19fa3849462d03f0503fb29023e (patch)
treec75832606689149ca798b56437f19ac0abd4d4d5 /src/H5Atest.c
parent1f4ee5485eb90dfc9380e07d70da9b59100c87bb (diff)
downloadhdf5-9f56d7f5ab7af19fa3849462d03f0503fb29023e.zip
hdf5-9f56d7f5ab7af19fa3849462d03f0503fb29023e.tar.gz
hdf5-9f56d7f5ab7af19fa3849462d03f0503fb29023e.tar.bz2
[svn-r15330] When an attribute was opened twice and data was written with one of the handles,
the file didn't have the data. It happened because each handle had its own object structure, and the empty one overwrote the data with fill value. This is fixed by making some attribute information like the data be shared in the attribute structure. Tested on smirom, kagiso, and linew.
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 df88472..de03a25 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->oloc.file, H5AC_ind_dxpl_id, H5O_ATTR_ID,
+ if(H5SM_get_refcount(attr->shared->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")