diff options
author | Dana Robinson <derobins@hdfgroup.org> | 2012-09-20 16:51:32 (GMT) |
---|---|---|
committer | Dana Robinson <derobins@hdfgroup.org> | 2012-09-20 16:51:32 (GMT) |
commit | 6de27c149724322135ad1049e55d2b3f6245a4d7 (patch) | |
tree | 4d3df33fc9f0f01258b45d460b0479db2f481e65 /src/H5HF.c | |
parent | 200ff7fa830bd226b09dfb52c326054d0e019269 (diff) | |
download | hdf5-6de27c149724322135ad1049e55d2b3f6245a4d7.zip hdf5-6de27c149724322135ad1049e55d2b3f6245a4d7.tar.gz hdf5-6de27c149724322135ad1049e55d2b3f6245a4d7.tar.bz2 |
[svn-r22794] Purpose:
Merge r22694 and r22700 from the trunk. These are minor fractal
heap edits.
Tested:
jam (minor change, has baked in trunk)
Diffstat (limited to 'src/H5HF.c')
-rw-r--r-- | src/H5HF.c | 14 |
1 files changed, 4 insertions, 10 deletions
@@ -439,14 +439,8 @@ H5HF_get_obj_len(H5HF_t *fh, hid_t dxpl_id, const void *_id, size_t *obj_len_p) /* Check type of object in heap */ if((id_flags & H5HF_ID_TYPE_MASK) == H5HF_ID_TYPE_MAN) { - /* Skip over the flag byte */ - id++; - - /* Skip over object offset */ - id += fh->hdr->heap_off_size; - - /* Retrieve the entry length */ - UINT64DECODE_VAR(id, *obj_len_p, fh->hdr->heap_len_size); + if(H5HF_man_get_obj_len(fh->hdr, id, obj_len_p) < 0) + HGOTO_ERROR(H5E_HEAP, H5E_CANTGET, FAIL, "can't get 'managed' object's length") } /* end if */ else if((id_flags & H5HF_ID_TYPE_MASK) == H5HF_ID_TYPE_HUGE) { if(H5HF_huge_get_obj_len(fh->hdr, dxpl_id, id, obj_len_p) < 0) @@ -457,8 +451,8 @@ H5HF_get_obj_len(H5HF_t *fh, hid_t dxpl_id, const void *_id, size_t *obj_len_p) HGOTO_ERROR(H5E_HEAP, H5E_CANTGET, FAIL, "can't get 'tiny' object's length") } /* end if */ else { -HDfprintf(stderr, "%s: Heap ID type not supported yet!\n", FUNC); -HGOTO_ERROR(H5E_HEAP, H5E_UNSUPPORTED, FAIL, "heap ID type not supported yet") + HDfprintf(stderr, "%s: Heap ID type not supported yet!\n", FUNC); + HGOTO_ERROR(H5E_HEAP, H5E_UNSUPPORTED, FAIL, "heap ID type not supported yet") } /* end else */ done: |