summaryrefslogtreecommitdiffstats
path: root/src/H5Dbtree.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2009-10-23 18:25:31 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2009-10-23 18:25:31 (GMT)
commit1059b742826ca3864be8ee70c76c8ef625d31e46 (patch)
tree99ef3fef414d8255e8e690e4ab23149305f55d38 /src/H5Dbtree.c
parentdeddcad6baf680ef38f9328c4ac1a482b6fb3a45 (diff)
downloadhdf5-1059b742826ca3864be8ee70c76c8ef625d31e46.zip
hdf5-1059b742826ca3864be8ee70c76c8ef625d31e46.tar.gz
hdf5-1059b742826ca3864be8ee70c76c8ef625d31e46.tar.bz2
[svn-r17737] Description:
Fix error in dataset's chunk index v1 B-tree debugging code to correctly pass userdata down to B-tree cache load routine. Tested on: Linux 2.4/64 (chicago1) (too minor to require h5committest)
Diffstat (limited to 'src/H5Dbtree.c')
-rw-r--r--src/H5Dbtree.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/H5Dbtree.c b/src/H5Dbtree.c
index c9561f2..691b349 100644
--- a/src/H5Dbtree.c
+++ b/src/H5Dbtree.c
@@ -1456,6 +1456,7 @@ herr_t
H5D_btree_debug(H5F_t *f, hid_t dxpl_id, haddr_t addr, FILE * stream, int indent,
int fwidth, unsigned ndims)
{
+ H5D_chunk_common_ud_t udata; /* User data for B-tree callback */
H5O_storage_chunk_t storage; /* Storage information for B-tree callback */
hbool_t shared_init = FALSE; /* Whether B-tree shared info is initialized */
herr_t ret_value = SUCCEED; /* Return value */
@@ -1471,8 +1472,13 @@ H5D_btree_debug(H5F_t *f, hid_t dxpl_id, haddr_t addr, FILE * stream, int indent
HGOTO_ERROR(H5E_RESOURCE, H5E_CANTINIT, FAIL, "can't create wrapper for shared B-tree info")
shared_init = TRUE;
+ /* Set up user data for callback */
+ udata.layout = NULL;
+ udata.storage = &storage;
+ udata.offset = NULL;
+
/* Dump the records for the B-tree */
- (void)H5B_debug(f, dxpl_id, addr, stream, indent, fwidth, H5B_BTREE, &ndims);
+ (void)H5B_debug(f, dxpl_id, addr, stream, indent, fwidth, H5B_BTREE, &udata);
done:
if(shared_init) {