summaryrefslogtreecommitdiffstats
path: root/src/H5Ocopy.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2007-03-10 04:56:53 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2007-03-10 04:56:53 (GMT)
commita127510b7b3049d0e136b677b180c8e644bdc7ea (patch)
tree0a7144ca74266b0e6eed3d86febd2968c9af7d40 /src/H5Ocopy.c
parent1bca28acc3294e465d22e4dee8ecfc92fbc55ebe (diff)
downloadhdf5-a127510b7b3049d0e136b677b180c8e644bdc7ea.zip
hdf5-a127510b7b3049d0e136b677b180c8e644bdc7ea.tar.gz
hdf5-a127510b7b3049d0e136b677b180c8e644bdc7ea.tar.bz2
[svn-r13486] Description:
Move attribute tracking information out of object header prefix and make it into a message that is inserted only when attributes are present on the object. Tested on: FreeBSD/32 6.2 (duty)
Diffstat (limited to 'src/H5Ocopy.c')
-rw-r--r--src/H5Ocopy.c21
1 files changed, 1 insertions, 20 deletions
diff --git a/src/H5Ocopy.c b/src/H5Ocopy.c
index 6a01355..55ba9bf 100644
--- a/src/H5Ocopy.c
+++ b/src/H5Ocopy.c
@@ -348,28 +348,9 @@ H5O_copy_header_real(const H5O_loc_t *oloc_src, H5O_loc_t *oloc_dst /*out */,
oh_dst->ctime = oh_src->ctime;
oh_dst->btime = oh_src->btime;
- /* Copy attribute information */
+ /* Copy attribute storage information */
oh_dst->max_compact = oh_src->max_compact;
oh_dst->min_dense = oh_src->min_dense;
- if(cpy_info->copy_without_attr) {
- oh_dst->nattrs = 0;
- oh_dst->attr_fheap_addr = HADDR_UNDEF;
- oh_dst->name_bt2_addr = HADDR_UNDEF;
- oh_dst->corder_bt2_addr = HADDR_UNDEF;
- } /* end if */
- else {
- oh_dst->nattrs = oh_src->nattrs;
-/* XXX: Bail out for now, if the source object has densely stored attributes */
- if(H5F_addr_defined(oh_src->attr_fheap_addr))
- HGOTO_ERROR(H5E_OHDR, H5E_UNSUPPORTED, FAIL, "densely stored attributes not supported yet")
- else {
- HDassert(!H5F_addr_defined(oh_src->name_bt2_addr));
- oh_dst->attr_fheap_addr = HADDR_UNDEF;
- oh_dst->name_bt2_addr = HADDR_UNDEF;
- oh_dst->corder_bt2_addr = HADDR_UNDEF;
- } /* end else */
- } /* end else */
-
/* Initialize size of chunk array. The destination always has only one
* chunk.