summaryrefslogtreecommitdiffstats
path: root/src/H5Gnode.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2005-07-30 18:53:01 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2005-07-30 18:53:01 (GMT)
commit0c9c34fab681a559633cbae215cb49ca812f4a3d (patch)
treeea192413d801b0a9d550172ca3e8f8d7771f3659 /src/H5Gnode.c
parentddb2af421f244dd92e8d7f53a1bb2b9a9df14bde (diff)
downloadhdf5-0c9c34fab681a559633cbae215cb49ca812f4a3d.zip
hdf5-0c9c34fab681a559633cbae215cb49ca812f4a3d.tar.gz
hdf5-0c9c34fab681a559633cbae215cb49ca812f4a3d.tar.bz2
[svn-r11176] Purpose:
Bug fix Description: Correct problems when querying information about a group that was opened by dereferencing an object reference. Solution: Read in symbol table information instead of rely on it being cached. Platforms tested: FreeBSD 4.11 (sleipnir) Too minor to require h5committest
Diffstat (limited to 'src/H5Gnode.c')
-rw-r--r--src/H5Gnode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5Gnode.c b/src/H5Gnode.c
index f88c89c..dfa607e 100644
--- a/src/H5Gnode.c
+++ b/src/H5Gnode.c
@@ -1679,7 +1679,7 @@ H5G_node_name(H5F_t *f, hid_t dxpl_id, const void UNUSED *_lt_key, haddr_t addr,
loc_idx = bt_udata->idx - bt_udata->num_objs;
name_off = sn->entry[loc_idx].name_off;
- if (NULL == (heap = H5HL_protect(f, dxpl_id, bt_udata->ent->cache.stab.heap_addr)))
+ if (NULL == (heap = H5HL_protect(f, dxpl_id, bt_udata->mesg->heap_addr)))
HGOTO_ERROR(H5E_SYM, H5E_NOTFOUND, H5B_ITER_ERROR, "unable to protect symbol name");
name = H5HL_offset_into(f, heap, name_off);
@@ -1687,7 +1687,7 @@ H5G_node_name(H5F_t *f, hid_t dxpl_id, const void UNUSED *_lt_key, haddr_t addr,
bt_udata->name = H5MM_strdup (name);
assert(bt_udata->name);
- if (H5HL_unprotect(f, dxpl_id, heap, bt_udata->ent->cache.stab.heap_addr, H5AC__NO_FLAGS_SET) < 0)
+ if (H5HL_unprotect(f, dxpl_id, heap, bt_udata->mesg->heap_addr, H5AC__NO_FLAGS_SET) < 0)
HGOTO_ERROR(H5E_SYM, H5E_PROTECT, H5B_ITER_ERROR, "unable to unprotect symbol name");
heap=NULL; name=NULL;