diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2006-08-14 02:50:11 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2006-08-14 02:50:11 (GMT) |
commit | 89f36d62b776ef955eed82a109b83a187ef115bb (patch) | |
tree | 4a8276f4a9ef5e614e9b829931d1094b9346e6d9 /src/H5HF.c | |
parent | c4a5b8e16cdf66d1cf4b70587a6747f03557b2ef (diff) | |
download | hdf5-89f36d62b776ef955eed82a109b83a187ef115bb.zip hdf5-89f36d62b776ef955eed82a109b83a187ef115bb.tar.gz hdf5-89f36d62b776ef955eed82a109b83a187ef115bb.tar.bz2 |
[svn-r12575] Description:
Allow the heap ID length to be chosen at heap creation time, to allow
for making heap IDs long enough to directly embed the file offset & length
of 'huge' objects in the heap ID (which allows them to be retrieved directly
from disk, instead of requiring them to be looked up in the B-tree that tracks
'huge' objects)
Tested on:
FreeBSD/32 4.11 (sleipnir)
Linux/64 2.4 (mir)
Solaris/64 9 (shanti)
Diffstat (limited to 'src/H5HF.c')
-rw-r--r-- | src/H5HF.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -112,12 +112,11 @@ H5HF_create(H5F_t *f, hid_t dxpl_id, const H5HF_create_t *cparam) HDassert(f); HDassert(cparam); - /* Initialize shared fractal heap header */ - /* (This routine is only called for newly created heaps) */ + /* Create shared fractal heap header */ if(HADDR_UNDEF == (hdr_addr = H5HF_hdr_create(f, dxpl_id, cparam))) HGOTO_ERROR(H5E_HEAP, H5E_CANTINIT, NULL, "can't create fractal heap header") - /* Create fractal heap wrapper */ + /* Allocate fractal heap wrapper */ if(NULL == (fh = H5FL_MALLOC(H5HF_t))) HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, NULL, "memory allocation failed for fractal heap info") |