diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2007-07-19 14:47:13 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2007-07-19 14:47:13 (GMT) |
commit | 0bbdb70ed7ef9173cce7492bc0c7679367e71d44 (patch) | |
tree | 911a6df6808abb87b4ed2c92b5f45714dd8c936e /src/H5Adense.c | |
parent | c55d0f4e1e09e813fec5fcaa0541150c1ee2a36f (diff) | |
download | hdf5-0bbdb70ed7ef9173cce7492bc0c7679367e71d44.zip hdf5-0bbdb70ed7ef9173cce7492bc0c7679367e71d44.tar.gz hdf5-0bbdb70ed7ef9173cce7492bc0c7679367e71d44.tar.bz2 |
[svn-r13989] Description:
Rename H5A_get_version() to H5A_set_version() and actually set the
attributes version in the routine.
Tested on:
Mac OS X/32 10.4.10 (amazon)
FreeBSD/32 6.2 (duty)
Linux/32 2.6 (chicago)
Linux/64 2.6 (chicago2)
Diffstat (limited to 'src/H5Adense.c')
-rw-r--r-- | src/H5Adense.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/H5Adense.c b/src/H5Adense.c index 00628b4..8549a10 100644 --- a/src/H5Adense.c +++ b/src/H5Adense.c @@ -908,7 +908,8 @@ H5A_dense_rename(H5F_t *f, hid_t dxpl_id, const H5O_ainfo_t *ainfo, const char * attr_copy->name = H5MM_xstrdup(new_name); /* Recompute the version to encode the attribute with */ - attr_copy->version = H5A_get_version(f, attr_copy); + if(H5A_set_version(f, attr_copy) < 0) + HGOTO_ERROR(H5E_ATTR, H5E_CANTSET, FAIL, "unable to update attribute version") /* Insert renamed attribute back into dense storage */ /* (Possibly making it shared) */ |