static int cvtdberr(dbiIndex dbi, const char * msg, int error, int printit)
{
if (printit && error) {
+ int db_api = dbi->dbi_rpmdb->db_api;
if (msg)
rpmlog(RPMLOG_ERR, _("db%d error(%d) from %s: %s\n"),
- dbi->dbi_api, error, msg, db_strerror(error));
+ db_api, error, msg, db_strerror(error));
else
rpmlog(RPMLOG_ERR, _("db%d error(%d): %s\n"),
- dbi->dbi_api, error, db_strerror(error));
+ db_api, error, db_strerror(error));
}
return error;
}
*/
if ((dbi = db3New(rpmdb, rpmtag)) == NULL)
return 1;
- dbi->dbi_api = DB_VERSION_MAJOR;
/*
* Get the prefix/root component and directory path.
unsigned dbi_mode; /*!< mode to use on open */
int dbi_perms; /*!< file permission to use on open */
long dbi_shmkey; /*!< shared memory base key */
- int dbi_api; /*!< Berkeley API type */
int dbi_verify_on_close;
int dbi_use_dbenv; /*!< use db environment? */