Index: src/io/trove/trove-dbpf/dbpf-dspace.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/io/trove/trove-dbpf/dbpf-dspace.c,v
retrieving revision 1.134.2.2
diff -r1.134.2.2 dbpf-dspace.c
49a50,61
> /* Union used by the dspace_iterate_handles call.  The berkeley db
>  * cursor->get(SET_RECNO) call, which sets the position of the cursor
>  * based on record number, expects the key.data to be a db_recno_t
>  * going in, but fills in the actual key value (in this case a TROVE_handle)
>  * on the way out.
>  */
> union dbpf_dspace_recno_handle_key
> {
>     db_recno_t recno;
>     TROVE_handle handle;
> };
> 
500c512
<     db_recno_t recno;
---
>     union dbpf_dspace_recno_handle_key recno_key;
532,533d543
<         assert(sizeof(recno) < sizeof(dummy_handle));
< 
539,540c549
<         dummy_handle = (TROVE_handle)
<             (*op_p->u.d_iterate_handles.position_p);
---
>         recno_key.recno = (*op_p->u.d_iterate_handles.position_p);
542,543c551,552
<         key.data  = &dummy_handle;
<         key.size  = key.ulen = sizeof(dummy_handle);
---
>         key.data  = &recno_key;
>         key.size  = key.ulen = sizeof(recno_key);
559,560c568,569
<             gossip_err("failed to set cursor position at %llu\n",
<                        llu(dummy_handle));
---
>             gossip_err("failed to set cursor position at recno: %u\n",
>                        recno_key.recno);
598a608
>         db_recno_t recno;
Index: src/io/trove/trove-handle-mgmt/trove-handle-mgmt.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/io/trove/trove-handle-mgmt/trove-handle-mgmt.c,v
retrieving revision 1.44
diff -r1.44 trove-handle-mgmt.c
83c83,84
<             if (ret != 1)
---
>             /* check result of testing */
>             if (ret < 0)
86,87c87,88
<                              "trove_dspace_iterate_handles failed\n");
<                 return -1;
---
>                              "dspace test of iterate_handles failed\n");
>                 return ret;
90a92,101
> 
>             /* also check result of actual operation, in this case,
>              * trove_dspace_iterate_handles
>              */
>             if(state < 0)
>             {
>                 gossip_debug(GOSSIP_TROVE_DEBUG,
>                              "trove_dspace_iterate_handles failed\n");
>                 return state;
>             }
