diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2007-01-29 18:19:05 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2007-01-29 18:19:05 (GMT) |
commit | 108114495fccaafcf77904f43e9c4cb90c4396f8 (patch) | |
tree | d7f57e606afd74369845ada2ddfa63d7343d92f8 /src/H5Omessage.c | |
parent | 55d4ec6ebf2f9f8037b33a39bc62bf93232771d8 (diff) | |
download | hdf5-108114495fccaafcf77904f43e9c4cb90c4396f8.zip hdf5-108114495fccaafcf77904f43e9c4cb90c4396f8.tar.gz hdf5-108114495fccaafcf77904f43e9c4cb90c4396f8.tar.bz2 |
[svn-r13217] Description:
Move fill value messages into new shared message method calling scheme.
Only update an opened dataset's fill value property if it's different from
the default fill value settings.
Tested on:
Linux/32 2.6 (chicago)
Linux/64 2.6 (chicago2)
Diffstat (limited to 'src/H5Omessage.c')
-rw-r--r-- | src/H5Omessage.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/H5Omessage.c b/src/H5Omessage.c index 0a575fb..c9de669 100644 --- a/src/H5Omessage.c +++ b/src/H5Omessage.c @@ -1977,7 +1977,6 @@ H5O_new_mesg(H5F_t *f, H5O_t *oh, unsigned *mesg_flags, const H5O_msg_class_t *o const void **new_mesg, hid_t dxpl_id, unsigned *oh_flags_ptr) { size_t size; /* Size of space allocated for object header */ - htri_t is_shared; /* Is this a shared message? */ unsigned ret_value = UFAIL; /* Return value */ FUNC_ENTER_NOAPI_NOINIT(H5O_new_mesg) @@ -1995,6 +1994,8 @@ H5O_new_mesg(H5F_t *f, H5O_t *oh, unsigned *mesg_flags, const H5O_msg_class_t *o /* Check for shared message */ if((*mesg_flags & H5O_MSG_FLAG_SHARED) && !H5O_NEW_SHARED(orig_type)) { + htri_t is_shared; /* Is this a shared message? */ + if((NULL == orig_type->is_shared) || (NULL == orig_type->get_share)) HGOTO_ERROR(H5E_OHDR, H5E_UNSUPPORTED, UFAIL, "message class is not sharable") if((is_shared = (orig_type->is_shared)(orig_mesg)) == FALSE) { |