summaryrefslogtreecommitdiffstats
path: root/src/H5Bcache.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2008-06-03 20:34:58 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2008-06-03 20:34:58 (GMT)
commit79380c228cb804bb7ed9bb1ac7b3f36706719c20 (patch)
tree24e7905fd80682e481e5ab9b342dd20862095f01 /src/H5Bcache.c
parenta9fa9a4a3715b8bd0dce83911548b88f30329c62 (diff)
downloadhdf5-79380c228cb804bb7ed9bb1ac7b3f36706719c20.zip
hdf5-79380c228cb804bb7ed9bb1ac7b3f36706719c20.tar.gz
hdf5-79380c228cb804bb7ed9bb1ac7b3f36706719c20.tar.bz2
[svn-r15132] Description:
Bring back revision 15131 from trunk: Finish omnibus chunked dataset I/O refactoring, to separate general actions on chunked datasets from actions that are specific to using the v1 B-tree index. Cleaned up a few bugs and added some additional tests also. Tested on: Mac OS X/32 10.5.3 (amazon) Linux/32 2.4 (chicago)
Diffstat (limited to 'src/H5Bcache.c')
-rw-r--r--src/H5Bcache.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/H5Bcache.c b/src/H5Bcache.c
index 2748963..b129925 100644
--- a/src/H5Bcache.c
+++ b/src/H5Bcache.c
@@ -397,10 +397,8 @@ static herr_t
H5B_compute_size(const H5F_t *f, const H5B_t *bt, size_t *size_ptr)
{
H5B_shared_t *shared; /* Pointer to shared B-tree info */
- size_t size;
- herr_t ret_value = SUCCEED; /* Return value */
- FUNC_ENTER_NOAPI_NOINIT(H5B_compute_size)
+ FUNC_ENTER_NOAPI_NOINIT_NOFUNC(H5B_compute_size)
/* check arguments */
HDassert(f);
@@ -411,13 +409,8 @@ H5B_compute_size(const H5F_t *f, const H5B_t *bt, size_t *size_ptr)
HDassert(shared->type);
HDassert(size_ptr);
- /* Check node's size */
- if ((size = H5B_nodesize(f, shared, NULL)) == 0)
- HGOTO_ERROR(H5E_RESOURCE, H5E_CANTGETSIZE, FAIL, "H5B_nodesize() failed")
-
/* Set size value */
- *size_ptr = size;
+ *size_ptr = shared->sizeof_rnode;
-done:
- FUNC_LEAVE_NOAPI(ret_value)
+ FUNC_LEAVE_NOAPI(SUCCEED)
} /* H5B_compute_size() */