summaryrefslogtreecommitdiffstats
path: root/src/H5Oattribute.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2007-02-20 15:20:10 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2007-02-20 15:20:10 (GMT)
commitca9a624416e0545f10ff690cd7baff099eb95928 (patch)
tree1873e3188210a16f020b1d4e239c00ba20357400 /src/H5Oattribute.c
parent61bd2d338b4f3cb981e5c8c7d01f780b16885efe (diff)
downloadhdf5-ca9a624416e0545f10ff690cd7baff099eb95928.zip
hdf5-ca9a624416e0545f10ff690cd7baff099eb95928.tar.gz
hdf5-ca9a624416e0545f10ff690cd7baff099eb95928.tar.bz2
[svn-r13344] Description:
More progress on attribute deletion by index. Tested on: Mac OS X/32 10.4.8 (amazon) FreeBSD/32 6.2 (duty)
Diffstat (limited to 'src/H5Oattribute.c')
-rw-r--r--src/H5Oattribute.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/H5Oattribute.c b/src/H5Oattribute.c
index 7aea0df..e3140cd 100644
--- a/src/H5Oattribute.c
+++ b/src/H5Oattribute.c
@@ -308,6 +308,9 @@ H5O_attr_create(const H5O_loc_t *loc, hid_t dxpl_id, H5A_t *attr)
if(H5O_touch_oh(loc->file, dxpl_id, oh, FALSE, &oh_flags) < 0)
HGOTO_ERROR(H5E_ATTR, H5E_CANTUPDATE, FAIL, "unable to update time on object")
+ /* Indicate that the object header was modified */
+ oh_flags |= H5AC__DIRTIED_FLAG;
+
done:
if(oh && H5AC_unprotect(loc->file, dxpl_id, H5AC_OHDR, loc->addr, oh, oh_flags) < 0)
HDONE_ERROR(H5E_ATTR, H5E_PROTECT, FAIL, "unable to release object header")