diff options
author | Dana Robinson <derobins@hdfgroup.org> | 2012-10-11 19:10:26 (GMT) |
---|---|---|
committer | Dana Robinson <derobins@hdfgroup.org> | 2012-10-11 19:10:26 (GMT) |
commit | d2f3c1b991b1990fe70afa64b3ca1941165a94c4 (patch) | |
tree | c7ffa957a3d8f415f7faab9b7b2e65f9e5d0b759 /src/H5B2pkg.h | |
parent | d179489d46c95e068ed6fc7f4c413c88cd9da28d (diff) | |
download | hdf5-d2f3c1b991b1990fe70afa64b3ca1941165a94c4.zip hdf5-d2f3c1b991b1990fe70afa64b3ca1941165a94c4.tar.gz hdf5-d2f3c1b991b1990fe70afa64b3ca1941165a94c4.tar.bz2 |
[svn-r22885] Purpose:
Adds some additional flush dependency plumbing and fixes some minor
issues with the v2 B-tree code.
Tested on:
local Ubuntu VM
Diffstat (limited to 'src/H5B2pkg.h')
-rw-r--r-- | src/H5B2pkg.h | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/src/H5B2pkg.h b/src/H5B2pkg.h index eb7d833..50cd153 100644 --- a/src/H5B2pkg.h +++ b/src/H5B2pkg.h @@ -230,8 +230,8 @@ typedef struct H5B2_internal_cache_ud_t { H5F_t *f; /* File that v2 b-tree header is within */ H5B2_hdr_t *hdr; /* v2 B-tree header */ void *parent; /* Flush dependency parent */ - unsigned nrec; /* Number of records in node to load */ - unsigned depth; /* Depth of node to load */ + uint16_t nrec; /* Number of records in node to load */ + uint16_t depth; /* Depth of node to load */ } H5B2_internal_cache_ud_t; /* Callback info for loading a free space leaf node into the cache */ @@ -239,14 +239,14 @@ typedef struct H5B2_leaf_cache_ud_t { H5F_t *f; /* File that v2 b-tree header is within */ H5B2_hdr_t *hdr; /* v2 B-tree header */ void *parent; /* Flush dependency parent */ - unsigned nrec; /* Number of records in node to load */ + uint16_t nrec; /* Number of records in node to load */ } H5B2_leaf_cache_ud_t; #ifdef H5B2_TESTING /* Node information for testing */ typedef struct { - unsigned depth; /* Depth of node */ - unsigned nrec; /* Number of records in node */ + uint16_t depth; /* Depth of node */ + uint16_t nrec; /* Number of records in node */ } H5B2_node_info_test_t; #endif /* H5B2_TESTING */ @@ -283,6 +283,12 @@ extern const H5B2_class_t *const H5B2_client_class_g[H5B2_NUM_BTREE_ID]; /* Package Private Prototypes */ /******************************/ +/* Generic routines */ +H5_DLL herr_t H5B2__create_flush_depend(H5AC_info_t *parent_entry, + H5AC_info_t *child_entry); +H5_DLL herr_t H5B2__destroy_flush_depend(H5AC_info_t *parent_entry, + H5AC_info_t *child_entry); + /* Routines for managing B-tree header info */ H5_DLL H5B2_hdr_t *H5B2_hdr_alloc(H5F_t *f); H5_DLL haddr_t H5B2_hdr_create(H5F_t *f, hid_t dxpl_id, |