Bug 46459 - apr_dbm BDB backend: allow db type selection
Summary: apr_dbm BDB backend: allow db type selection
Status: NEW
Alias: None
Product: APR
Classification: Unclassified
Component: APR-util (show other bugs)
Version: 1.3.4
Hardware: PC Linux
: P2 enhancement (vote)
Target Milestone: ---
Assignee: Apache Portable Runtime bugs mailinglist
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-31 20:25 UTC by Christopher Head
Modified: 2008-12-31 20:25 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christopher Head 2008-12-31 20:25:56 UTC
Currently, in apr_dbm_berkeleydb.c, the vt_db_open() function hardcodes the database type as DB_HASH. It would be ideal if the client could specify this parameter. Less ideal, but still better than the current state, would be if DB_UNKNOWN were used for non-create opens so that files in other formats would at least work. Barring either of the above, at the very least db2s() should be improved to report all the BDB errors that correspond to system errors as system errors and not user errors, so that sensible string messages come out (e.g. "Invalid argument" rather than "(120022)APR does not understand this error code").