summaryrefslogtreecommitdiffstats
path: root/src/H5Apkg.h
diff options
context:
space:
mode:
authorNeil Fortner <nfortne2@hdfgroup.org>2009-02-12 19:06:37 (GMT)
committerNeil Fortner <nfortne2@hdfgroup.org>2009-02-12 19:06:37 (GMT)
commit02fd491bf01ff4c54980a4f1ad3fd822e6998215 (patch)
treec27bbaee35bb4072ede8915bf43b1037a924ae55 /src/H5Apkg.h
parent3c483bd0782a3f9809d782a29a01bd1013f651f4 (diff)
downloadhdf5-02fd491bf01ff4c54980a4f1ad3fd822e6998215.zip
hdf5-02fd491bf01ff4c54980a4f1ad3fd822e6998215.tar.gz
hdf5-02fd491bf01ff4c54980a4f1ad3fd822e6998215.tar.bz2
[svn-r16477] 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/H5Apkg.h')
-rw-r--r--src/H5Apkg.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5Apkg.h b/src/H5Apkg.h
index 9027864..afe82b8 100644
--- a/src/H5Apkg.h
+++ b/src/H5Apkg.h
@@ -76,7 +76,6 @@
typedef struct H5A_shared_t {
unsigned version; /* Version to encode attribute with */
hbool_t initialized;/* Indicate whether the attribute has been modified */
- H5O_loc_t oloc; /* Object location for object attribute is on */
char *name; /* Attribute's name */
H5T_cset_t encoding; /* Character encoding of attribute name */
@@ -96,6 +95,7 @@ typedef struct H5A_shared_t {
/* Define the main attribute structure */
struct H5A_t {
H5O_shared_t sh_loc; /* Shared message info (must be first) */
+ H5O_loc_t oloc; /* Object location for object attribute is on */
hbool_t obj_opened; /* Object header entry opened? */
H5G_name_t path; /* Group hierarchy path */
H5A_shared_t *shared; /* Shared attribute information */