summaryrefslogtreecommitdiffstats
path: root/src/H5SMbtree2.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2007-06-26 16:10:29 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2007-06-26 16:10:29 (GMT)
commit0490b178003d70eeac1ec28791dd2d5cf8064355 (patch)
treeef0d0ec9a70d07d7f5bbbd004d0ef7a47af24610 /src/H5SMbtree2.c
parentd114cda9a00a89323aedacec5dfcbbdf0aca32b7 (diff)
downloadhdf5-0490b178003d70eeac1ec28791dd2d5cf8064355.zip
hdf5-0490b178003d70eeac1ec28791dd2d5cf8064355.tar.gz
hdf5-0490b178003d70eeac1ec28791dd2d5cf8064355.tar.bz2
[svn-r13915] Description:
Clean up SOHM code, to copy message in H5HF_op call instead of separate calls to H5HF_get_obj_len() and H5HF_read(). Tested on: Mac OS X/32 10.4.9 (amazon) Linux/32 2.6 (chicago)
Diffstat (limited to 'src/H5SMbtree2.c')
-rwxr-xr-xsrc/H5SMbtree2.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/H5SMbtree2.c b/src/H5SMbtree2.c
index 43ea1fd..8863287 100755
--- a/src/H5SMbtree2.c
+++ b/src/H5SMbtree2.c
@@ -81,7 +81,7 @@ const H5B2_class_t H5SM_INDEX[1]={{ /* B-tree class information */
/*-------------------------------------------------------------------------
* Function: H5SM_btree_compare_cb
*
- * Purpose: Callback for H5HF_op, used in H5SM_btree_compare_cb below.
+ * Purpose: Callback for H5HF_op, used in H5SM_message_compare below.
* Determines whether the search key passed in in _UDATA is
* equal to OBJ or not.
*
@@ -98,7 +98,6 @@ static herr_t
H5SM_btree_compare_cb(const void *obj, size_t obj_len, void *_udata)
{
H5SM_compare_udata_t *udata = (H5SM_compare_udata_t *)_udata;
- herr_t ret_value = SUCCEED;
FUNC_ENTER_NOAPI_NOINIT_NOFUNC(H5SM_btree_compare_cb)
@@ -111,7 +110,7 @@ H5SM_btree_compare_cb(const void *obj, size_t obj_len, void *_udata)
/* Sizes are the same. Return result of memcmp */
udata->ret = HDmemcmp(udata->key->encoding, obj, obj_len);
- FUNC_LEAVE_NOAPI(ret_value)
+ FUNC_LEAVE_NOAPI(SUCCEED)
} /* end H5SM_btree_compare_cb() */
@@ -243,7 +242,7 @@ H5SM_message_compare(const void *rec1, const void *rec2)
*/
if(mesg->location == H5SM_IN_HEAP) {
/* Call heap op routine with comparison callback */
- status = H5HF_op(key->fheap, H5AC_dxpl_id, &(mesg->u.heap_loc.fheap_id), H5SM_btree_compare_cb, &udata);
+ status = H5HF_op(key->fheap, key->dxpl_id, &(mesg->u.heap_loc.fheap_id), H5SM_btree_compare_cb, &udata);
HDassert(status >= 0);
} /* end if */
else {