diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2006-12-18 21:06:44 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2006-12-18 21:06:44 (GMT) |
commit | 9769d008b0d610f3dd0bff5f3ef083d01c506c35 (patch) | |
tree | c4f60023c3f1a482918baafa8195217004658823 /src/H5Oattribute.c | |
parent | f327d12ebdd069812896d52de70fff65024fba42 (diff) | |
download | hdf5-9769d008b0d610f3dd0bff5f3ef083d01c506c35.zip hdf5-9769d008b0d610f3dd0bff5f3ef083d01c506c35.tar.gz hdf5-9769d008b0d610f3dd0bff5f3ef083d01c506c35.tar.bz2 |
[svn-r13072] Description:
Push support for shared attributes into more dark corners of the "dense"
attribute storage support.
Tested on:
Linux/32 2.6 (chicago)
Linux/64 2.6 (chicago2)
Diffstat (limited to 'src/H5Oattribute.c')
-rw-r--r-- | src/H5Oattribute.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/H5Oattribute.c b/src/H5Oattribute.c index aaf91f6..038bed1 100644 --- a/src/H5Oattribute.c +++ b/src/H5Oattribute.c @@ -188,7 +188,8 @@ H5O_attr_to_dense_cb(H5O_t *oh, H5O_mesg_t *mesg/*in,out*/, HGOTO_ERROR(H5E_OHDR, H5E_CANTINSERT, H5_ITER_ERROR, "unable to add to dense storage") /* Convert message into a null message in the header */ - if(H5O_release_mesg(udata->f, udata->dxpl_id, oh, mesg, TRUE, FALSE) < 0) + /* (don't delete attribute's space in the file though) */ + if(H5O_release_mesg(udata->f, udata->dxpl_id, oh, mesg, FALSE, FALSE) < 0) HGOTO_ERROR(H5E_OHDR, H5E_CANTDELETE, H5_ITER_ERROR, "unable to convert into null message") /* Indicate that the object header was modified */ @@ -225,6 +226,9 @@ H5O_attr_create(const H5O_loc_t *loc, hid_t dxpl_id, H5A_t *attr) herr_t ret_value = SUCCEED; /* Return value */ FUNC_ENTER_NOAPI_NOINIT(H5O_attr_create) +#ifdef QAK +HDfprintf(stderr, "%s: adding attribute, attr->name = '%s'\n", FUNC, attr->name); +#endif /* QAK */ /* Check arguments */ HDassert(loc); @@ -242,7 +246,6 @@ H5O_attr_create(const H5O_loc_t *loc, hid_t dxpl_id, H5A_t *attr) HGOTO_ERROR(H5E_ATTR, H5E_CANTLOAD, FAIL, "unable to load object header") #ifdef QAK -HDfprintf(stderr, "%s: adding attribute to new-style object header\n", FUNC); HDfprintf(stderr, "%s: oh->nattrs = %Hu\n", FUNC, oh->nattrs); HDfprintf(stderr, "%s: oh->max_compact = %u\n", FUNC, oh->max_compact); HDfprintf(stderr, "%s: oh->min_dense = %u\n", FUNC, oh->min_dense); |