diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2011-10-20 17:13:11 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2011-10-20 17:13:11 (GMT) |
commit | 13bc2e73cf5f85b8bba2918e2e2b1af914e92e60 (patch) | |
tree | 2b90aa5dcea2dd7e6b80e3bd82010ae5e1013d71 /src/H5Aint.c | |
parent | d91a3fda2a1a70412cf654636d002c555c3d003c (diff) | |
download | hdf5-13bc2e73cf5f85b8bba2918e2e2b1af914e92e60.zip hdf5-13bc2e73cf5f85b8bba2918e2e2b1af914e92e60.tar.gz hdf5-13bc2e73cf5f85b8bba2918e2e2b1af914e92e60.tar.bz2 |
[svn-r21618] Description:
Bring r21617 from trunk to 1.8 branch:
Recalculate the size of destination attribute message when the source and
destination versions are different during an object copy operation.
(Jira: HDFF-7718)
Tested on:
Mac OS X/32 10.7.2 (amazon) w/debug
(h5committested on trunk)
Diffstat (limited to 'src/H5Aint.c')
-rw-r--r-- | src/H5Aint.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/H5Aint.c b/src/H5Aint.c index 3f00c76..e04d080 100644 --- a/src/H5Aint.c +++ b/src/H5Aint.c @@ -1010,6 +1010,10 @@ H5A_attr_copy_file(const H5A_t *attr_src, H5F_t *file_dst, hbool_t *recompute_si if(H5A_set_version(file_dst, attr_dst) < 0) HGOTO_ERROR(H5E_ATTR, H5E_CANTSET, NULL, "unable to update attribute version") + /* Recompute the destination attribute's size, if it's a different version */ + if(attr_src->shared->version != attr_dst->shared->version) + *recompute_size = TRUE; + /* Set return value */ ret_value = attr_dst; |