[redland] Bug w/ remove statement under BDB storage

Dave Beckett dave.beckett at bristol.ac.uk
Wed May 15 18:17:03 BST 2002


>>>Chad House said:
> I poked around the source a bit, and think I've found the problem.
> 
> 'librdf_hash_bdb_delete_key_value' in rdf_hash_bdb.c calls the
> database cursor's c_get function with a flag of DB_SET:
> 
>    /* V2/V3 prototype:
>     * int DBcursor->c_get(DBC *cursor, DBT *key, DBT *data, u_int32_t flags);
>     */
>    ret=dbc->c_get(dbc, &bdb_key, &bdb_value, DB_SET);

<snip/>

> I think the flag should be DB_GET_BOTH:

Yeah, I've confirmed this and folded the change into the sources.

Thanks for the fix

Dave






More information about the redland-dev mailing list