diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2004-07-14 19:08:34 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2004-07-14 19:08:34 (GMT) |
commit | 769ee96c1fd7cdcc4de2f2b1f36e943ebf9fff8b (patch) | |
tree | d17a58cc98b8789145de837650aaba38dd7af262 /src/H5Gent.c | |
parent | bc6ab7c0a6ff27d3d52707419385ccd0771ffa0c (diff) | |
download | hdf5-769ee96c1fd7cdcc4de2f2b1f36e943ebf9fff8b.zip hdf5-769ee96c1fd7cdcc4de2f2b1f36e943ebf9fff8b.tar.gz hdf5-769ee96c1fd7cdcc4de2f2b1f36e943ebf9fff8b.tar.bz2 |
[svn-r8874] Purpose:
Bug fix
Description:
Correct problems with "resurrecting" a dataset in a file. (This occurs
when a dataset which is open gets unlinked from the group hierarchy (making it
"dead" and marked for deletion in the file) and then is re-linked to the group
hierarchy). Note that the current solution applies only to datasets, further
work will fix this for groups and named datatypes also.
Also, fix the "debug" routines to be a little more helpful in certain
situations.
Additionally, fix a locking bug in the symbol table node splitting routine
which could be [one of] the cause[s] of the file corruption in flexible
parallel operation.
Platforms tested:
FreeBSD 4.10 (sleipnir) w/parallel
h5committested
Diffstat (limited to 'src/H5Gent.c')
-rw-r--r-- | src/H5Gent.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/H5Gent.c b/src/H5Gent.c index 6f206dd..4aaaf70 100644 --- a/src/H5Gent.c +++ b/src/H5Gent.c @@ -490,7 +490,7 @@ H5G_ent_debug(H5F_t UNUSED *f, hid_t dxpl_id, const H5G_entry_t *ent, FILE * str HDfprintf (stream, "%*s%-*s %lu\n", nested_indent, "", nested_fwidth, "Link value offset:", (unsigned long)(ent->cache.slink.lval_offset)); - if (H5F_addr_defined(heap)) { + if (heap>0 && H5F_addr_defined(heap)) { const H5HL_t *heap_ptr; heap_ptr = H5HL_protect(ent->file, dxpl_id, heap); @@ -500,6 +500,8 @@ H5G_ent_debug(H5F_t UNUSED *f, hid_t dxpl_id, const H5G_entry_t *ent, FILE * str lval); H5HL_unprotect(ent->file, dxpl_id, heap_ptr, heap); } + else + HDfprintf(stream, "%*s%-*s\n", nested_indent, "", nested_fwidth, "Warning: Invalid heap address given, name not displayed!"); break; default: |