diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2007-02-06 20:03:06 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2007-02-06 20:03:06 (GMT) |
commit | 7320ccac2d5b254cf77bf4a45c35804c9a4c9ec0 (patch) | |
tree | 35f836d65184a72e96c1f765853e0a2ae4cf59a7 /src/H5Oattribute.c | |
parent | affdaa04b57c6c598580fa615d64a7680fbda2e8 (diff) | |
download | hdf5-7320ccac2d5b254cf77bf4a45c35804c9a4c9ec0.zip hdf5-7320ccac2d5b254cf77bf4a45c35804c9a4c9ec0.tar.gz hdf5-7320ccac2d5b254cf77bf4a45c35804c9a4c9ec0.tar.bz2 |
[svn-r13248] Description:
More progress on creation order for attribbutes - they are now basically
working for "compact" attribute storage.
Tested on:
FreeBSD/32 6.2 (duty)
Mac OS X/32 10.4.8 (amazon)
Diffstat (limited to 'src/H5Oattribute.c')
-rw-r--r-- | src/H5Oattribute.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/H5Oattribute.c b/src/H5Oattribute.c index a616943..9a7e352 100644 --- a/src/H5Oattribute.c +++ b/src/H5Oattribute.c @@ -240,15 +240,17 @@ H5O_attr_create(const H5O_loc_t *loc, hid_t dxpl_id, H5A_t *attr) /* Increment attribute count */ oh->nattrs++; - /* Check if the object is tracking creation order on attributes */ - if(oh->flags & H5P_CRT_ORDER_TRACKED) { + /* Later versions of the object header track the creation index on all messages */ + if(oh->version > H5O_VERSION_1) { /* Check for attribute creation order index on the object wrapping around */ if(oh->max_attr_crt_idx == H5O_MAX_CRT_ORDER_IDX) - HGOTO_ERROR(H5E_ATTR, H5E_CANTINC, FAIL, "Attribute creation index can't be incremented") + HGOTO_ERROR(H5E_ATTR, H5E_CANTINC, FAIL, "attribute creation index can't be incremented") /* Set the creation order index on the attribute & incr. creation order index */ attr->crt_idx = oh->max_attr_crt_idx++; } /* end if */ + else + attr->crt_idx = H5O_MAX_CRT_ORDER_IDX; /* Check for storing attribute with dense storage */ if(H5F_addr_defined(oh->attr_fheap_addr)) { |