summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>1998-06-26 01:27:11 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>1998-06-26 01:27:11 (GMT)
commit030d46c078b7ef61468703dabb4861212ecb13ca (patch)
tree3c9d9474320922728d148630b449facc7f9f89cf /src
parent4bf629adc96541fda24bafbdde00fd4ff92be344 (diff)
downloadhdf5-030d46c078b7ef61468703dabb4861212ecb13ca.zip
hdf5-030d46c078b7ef61468703dabb4861212ecb13ca.tar.gz
hdf5-030d46c078b7ef61468703dabb4861212ecb13ca.tar.bz2
[svn-r436] H5Pset_cache() did not save the value of rdcc_w0. Fixed it.
Diffstat (limited to 'src')
-rw-r--r--src/H5P.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/H5P.c b/src/H5P.c
index 29e22e7..94aff95 100644
--- a/src/H5P.c
+++ b/src/H5P.c
@@ -1159,7 +1159,7 @@ H5Pset_external (hid_t plist_id, const char *name, off_t offset, hsize_t size)
/* Add to the list */
if (plist->efl.nused>=plist->efl.nalloc) {
- size_t na = plist->efl.nalloc + H5O_EFL_ALLOC;
+ intn na = plist->efl.nalloc + H5O_EFL_ALLOC;
H5O_efl_entry_t *x = H5MM_realloc (plist->efl.slot,
na*sizeof(H5O_efl_entry_t));
if (!x) {
@@ -1882,6 +1882,7 @@ H5Pset_cache (hid_t tid, int mdc_nelmts, size_t rdcc_nbytes,
/* Set sizes */
fapl->mdc_nelmts = mdc_nelmts;
fapl->rdcc_nbytes = rdcc_nbytes;
+ fapl->rdcc_w0 = rdcc_w0;
FUNC_LEAVE (SUCCEED);
}
@@ -1891,10 +1892,10 @@ H5Pset_cache (hid_t tid, int mdc_nelmts, size_t rdcc_nbytes,
* Function: H5Pget_cache
*
* Purpose: Retrieves the maximum possible number of elements in the meta
- * data cache and the maximum possible number of bytes in the
- * raw data chunk cache. Any (or all) arguments may be null
- * pointers in which case the corresponding datum is not
- * returned.
+ * data cache and the maximum possible number of bytes and the
+ * RDCC_W0 value in the raw data chunk cache. Any (or all)
+ * arguments may be null pointers in which case the corresponding
+ * datum is not returned.
*
* Return: Success: SUCCEED
*