diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2011-10-20 17:05:23 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2011-10-20 17:05:23 (GMT) |
commit | 1c320f00256922f8479a8336ac8b6c5c9f3c2293 (patch) | |
tree | e12115b7e16eddfd4564123fa38f3c6feae4526f /src/H5Aint.c | |
parent | 7968c506077fceab24d791c4d64344ed7bc4c30d (diff) | |
download | hdf5-1c320f00256922f8479a8336ac8b6c5c9f3c2293.zip hdf5-1c320f00256922f8479a8336ac8b6c5c9f3c2293.tar.gz hdf5-1c320f00256922f8479a8336ac8b6c5c9f3c2293.tar.bz2 |
[svn-r21617] Description:
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
(h5committest upcoming)
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 b66c9b3..71f37a1 100644 --- a/src/H5Aint.c +++ b/src/H5Aint.c @@ -1006,6 +1006,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; |