diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2006-10-12 18:42:02 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2006-10-12 18:42:02 (GMT) |
commit | 6716ae8429b63b32623f1de1d0a6235c559e6e9c (patch) | |
tree | 946fece29fc5a7706a175a3acecbfe560cd2a9c0 /src/H5Gobj.c | |
parent | 7da414109cf800ba11680dc25627571953fc268e (diff) | |
download | hdf5-6716ae8429b63b32623f1de1d0a6235c559e6e9c.zip hdf5-6716ae8429b63b32623f1de1d0a6235c559e6e9c.tar.gz hdf5-6716ae8429b63b32623f1de1d0a6235c559e6e9c.tar.bz2 |
[svn-r12756] Description:
Clean up some object header code in advance of more major changes in the
near future.
Fix small initialization error in attribute message name buffer copy.
Tweak down the default # of messages for new object headers.
Tested on:
FreeBSD/32 4.11 (sleipnir) w/threadsafe
Linux/32 2.4 (heping) w/FORTRAN & C++
Mac OS/32 10.4.8 (amazon)
Diffstat (limited to 'src/H5Gobj.c')
-rw-r--r-- | src/H5Gobj.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5Gobj.c b/src/H5Gobj.c index 4500ed4..b6abe4c 100644 --- a/src/H5Gobj.c +++ b/src/H5Gobj.c @@ -536,7 +536,7 @@ H5G_obj_insert(H5O_loc_t *grp_oloc, const char *name, H5O_link_t *obj_lnk, */ if(H5F_addr_defined(linfo.link_fheap_addr)) use_new_dense = TRUE; - else if(linfo.nlinks < ginfo.max_compact && link_msg_size < H5O_MAX_SIZE) + else if(linfo.nlinks < ginfo.max_compact && link_msg_size < H5O_MESG_MAX_SIZE) use_new_dense = FALSE; else { H5G_obj_oh_it_ud1_t udata; /* User data for iteration */ @@ -942,7 +942,7 @@ H5G_obj_remove(H5O_loc_t *oloc, const char *name, H5G_obj_t *obj_type, hid_t dxp * into an object header message) */ for(u = 0; u < linfo.nlinks; u++) - if(H5O_mesg_size(H5O_LINK_ID, oloc->file, &(ltable.lnks[u]), (size_t)0) >= H5O_MAX_SIZE) { + if(H5O_mesg_size(H5O_LINK_ID, oloc->file, &(ltable.lnks[u]), (size_t)0) >= H5O_MESG_MAX_SIZE) { can_convert = FALSE; break; } /* end if */ |