#include "system.h"
#include <rpmlib.h>
#include <rpmmacro.h>
#include <rpmurl.h>
#include <rpmdb.h>
#include "debug.h"
Go to the source code of this file.
Data Structures | |
struct | dbiHStats_s |
Hash database statistics. More... | |
struct | dbiBStats_s |
B-tree database statistics. More... | |
Defines | |
#define | DB_CLIENT DB_RPCCLIENT |
Functions | |
static int | cvtdberr (dbiIndex dbi, const char *msg, int error, int printit) |
static int | db_fini (dbiIndex dbi, const char *dbhome, const char *dbfile, const char *dbsubfile) |
static int | db3_fsync_disable (int fd) |
static int | db_init (dbiIndex dbi, const char *dbhome, const char *dbfile, const char *dbsubfile, DB_ENV **dbenvp) |
static int | db3sync (dbiIndex dbi, unsigned int flags) |
static int | db3cdup (dbiIndex dbi, DBC *dbcursor, DBC **dbcp, unsigned int flags) |
static int | db3cclose (dbiIndex dbi, DBC *dbcursor, unsigned int flags) |
static int | db3copen (dbiIndex dbi, DB_TXN *txnid, DBC **dbcp, unsigned int dbiflags) |
static int | db3cput (dbiIndex dbi, DBC *dbcursor, DBT *key, DBT *data, unsigned int flags) |
static int | db3cdel (dbiIndex dbi, DBC *dbcursor, DBT *key, DBT *data, unsigned int flags) |
static int | db3cget (dbiIndex dbi, DBC *dbcursor, DBT *key, DBT *data, unsigned int flags) |
static int | db3cpget (dbiIndex dbi, DBC *dbcursor, DBT *key, DBT *pkey, DBT *data, unsigned int flags) |
static int | db3ccount (dbiIndex dbi, DBC *dbcursor, unsigned int *countp, unsigned int flags) |
static int | db3byteswapped (dbiIndex dbi) |
static int | db3stat (dbiIndex dbi, unsigned int flags) |
static int | db3associate (dbiIndex dbi, dbiIndex dbisecondary, int(*callback)(DB *, const DBT *, const DBT *, DBT *), unsigned int flags) |
static int | db3join (dbiIndex dbi, DBC **curslist, DBC **dbcp, unsigned int flags) |
static int | db3close (dbiIndex dbi, unsigned int flags) |
static int | db3open (rpmdb rpmdb, rpmTag rpmtag, dbiIndex *dbip) |
Variables | |
static int | _debug = 1 |
_dbiVec | db3vec |
Definition in file db3.c.
#define DB_CLIENT DB_RPCCLIENT |
static int cvtdberr | ( | dbiIndex | dbi, | |
const char * | msg, | |||
int | error, | |||
int | printit | |||
) | [static] |
Definition at line 151 of file db3.c.
References _, _dbiIndex::dbi_api, RPMERR_DBERR, and rpmError.
Referenced by db3associate(), db3cclose(), db3ccount(), db3cdel(), db3cdup(), db3cget(), db3close(), db3copen(), db3cpget(), db3cput(), db3join(), db3open(), db3stat(), db3sync(), db_fini(), and db_init().
static int db3_fsync_disable | ( | int | fd | ) | [static] |
static int db3byteswapped | ( | dbiIndex | dbi | ) | [static] |
static int db3cclose | ( | dbiIndex | dbi, | |
DBC * | dbcursor, | |||
unsigned int | flags | |||
) | [static] |
static int db3ccount | ( | dbiIndex | dbi, | |
DBC * | dbcursor, | |||
unsigned int * | countp, | |||
unsigned int | flags | |||
) | [static] |
static int db3cdel | ( | dbiIndex | dbi, | |
DBC * | dbcursor, | |||
DBT * | key, | |||
DBT * | data, | |||
unsigned int | flags | |||
) | [static] |
Definition at line 562 of file db3.c.
References _debug, cvtdberr(), _dbiIndex::dbi_db, and _dbiIndex::dbi_txnid.
static int db3cdup | ( | dbiIndex | dbi, | |
DBC * | dbcursor, | |||
DBC ** | dbcp, | |||
unsigned int | flags | |||
) | [static] |
static int db3cget | ( | dbiIndex | dbi, | |
DBC * | dbcursor, | |||
DBT * | key, | |||
DBT * | data, | |||
unsigned int | flags | |||
) | [static] |
Definition at line 594 of file db3.c.
References _debug, cvtdberr(), _dbiIndex::dbi_db, and _dbiIndex::dbi_txnid.
static int db3close | ( | dbiIndex | dbi, | |
unsigned int | flags | |||
) | [static] |
Definition at line 763 of file db3.c.
References _, _debug, _free(), cvtdberr(), db3Free(), rpmdb_s::db_chrootDone, rpmdb_s::db_dbenv, rpmdb_s::db_errcall, rpmdb_s::db_errfile, rpmdb_s::db_errpfx, db_fini(), rpmdb_s::db_home, rpmdb_s::db_opens, rpmdb_s::db_root, _dbiIndex::dbi_db, _dbiIndex::dbi_file, _dbiIndex::dbi_home, _dbiIndex::dbi_root, _dbiIndex::dbi_rpmdb, _dbiIndex::dbi_rpmtag, _dbiIndex::dbi_subfile, _dbiIndex::dbi_temporary, _dbiIndex::dbi_tmpdir, _dbiIndex::dbi_use_dbenv, _dbiIndex::dbi_verbose, _dbiIndex::dbi_verify_on_close, rpmGenPath(), rpmGetPath(), RPMMESS_DEBUG, rpmMessage, tagName(), and urlPath().
Referenced by db3open().
static int db3copen | ( | dbiIndex | dbi, | |
DB_TXN * | txnid, | |||
DBC ** | dbcp, | |||
unsigned int | dbiflags | |||
) | [static] |
Definition at line 511 of file db3.c.
References _debug, cvtdberr(), db3cclose(), _dbiIndex::dbi_db, _dbiIndex::dbi_eflags, and _dbiIndex::dbi_oflags.
static int db3cpget | ( | dbiIndex | dbi, | |
DBC * | dbcursor, | |||
DBT * | key, | |||
DBT * | pkey, | |||
DBT * | data, | |||
unsigned int | flags | |||
) | [static] |
static int db3cput | ( | dbiIndex | dbi, | |
DBC * | dbcursor, | |||
DBT * | key, | |||
DBT * | data, | |||
unsigned int | flags | |||
) | [static] |
Definition at line 541 of file db3.c.
References _debug, cvtdberr(), _dbiIndex::dbi_db, and _dbiIndex::dbi_txnid.
static int db3join | ( | dbiIndex | dbi, | |
DBC ** | curslist, | |||
DBC ** | dbcp, | |||
unsigned int | flags | |||
) | [static] |
Definition at line 915 of file db3.c.
References _, _debug, _free(), alloca(), cvtdberr(), db3close(), db3New(), db3vec, rpmdb_s::db_chrootDone, DB_CLIENT, rpmdb_s::db_dbenv, rpmdb_s::db_free, rpmdb_s::db_home, db_init(), rpmdb_s::db_malloc, rpmdb_s::db_opens, rpmdb_s::db_realloc, rpmdb_s::db_root, _dbiIndex::dbi_api, _dbiIndex::dbi_bt_compare_fcn, _dbiIndex::dbi_bt_dup_compare_fcn, _dbiIndex::dbi_bt_flags, _dbiIndex::dbi_bt_minkey, _dbiIndex::dbi_bt_prefix_fcn, _dbiIndex::dbi_cachesize, _dbiIndex::dbi_cflags, _dbiIndex::dbi_db, _dbiIndex::dbi_ecflags, _dbiIndex::dbi_eflags, _dbiIndex::dbi_file, _dbiIndex::dbi_h_dup_compare_fcn, _dbiIndex::dbi_h_ffactor, _dbiIndex::dbi_h_flags, _dbiIndex::dbi_h_hash_fcn, _dbiIndex::dbi_h_nelem, _dbiIndex::dbi_home, _dbiIndex::dbi_host, _dbiIndex::dbi_lockdbfd, _dbiIndex::dbi_lorder, _dbiIndex::dbi_mode, _dbiIndex::dbi_oeflags, _dbiIndex::dbi_oflags, _dbiIndex::dbi_pagesize, _dbiIndex::dbi_perms, _dbiIndex::dbi_q_extentsize, _dbiIndex::dbi_re_delim, _dbiIndex::dbi_re_len, _dbiIndex::dbi_re_pad, _dbiIndex::dbi_re_source, _dbiIndex::dbi_root, _dbiIndex::dbi_rpmtag, _dbiIndex::dbi_subfile, _dbiIndex::dbi_temporary, _dbiIndex::dbi_txnid, _dbiIndex::dbi_type, _dbiIndex::dbi_use_dbenv, _dbiIndex::dbi_vec, _dbiIndex::dbi_verify_on_close, F_OK, prDbiOpenFlags(), RPMERR_FLOCK, rpmError, rpmGenPath(), rpmGetPath(), rpmioMkpath(), RPMMESS_DEBUG, rpmMessage, RPMWARN_FLOCK, stpcpy(), tagName(), urlPath(), and W_OK.
static int db3stat | ( | dbiIndex | dbi, | |
unsigned int | flags | |||
) | [static] |
Definition at line 685 of file db3.c.
References _debug, _free(), cvtdberr(), _dbiIndex::dbi_db, and _dbiIndex::dbi_stats.
static int db3sync | ( | dbiIndex | dbi, | |
unsigned int | flags | |||
) | [static] |
static int db_fini | ( | dbiIndex | dbi, | |
const char * | dbhome, | |||
const char * | dbfile, | |||
const char * | dbsubfile | |||
) | [static] |
Definition at line 172 of file db3.c.
References _, _debug, cvtdberr(), rpmdb_s::db_dbenv, rpmdb_s::db_remove_env, _dbiIndex::dbi_rpmdb, RPMMESS_DEBUG, and rpmMessage.
Referenced by db3close().
static int db_init | ( | dbiIndex | dbi, | |
const char * | dbhome, | |||
const char * | dbfile, | |||
const char * | dbsubfile, | |||
DB_ENV ** | dbenvp | |||
) | [static] |
Definition at line 272 of file db3.c.
References _, _debug, _free(), cvtdberr(), db3_fsync_disable(), rpmdb_s::db_chrootDone, DB_CLIENT, rpmdb_s::db_errcall, rpmdb_s::db_errfile, rpmdb_s::db_errpfx, rpmdb_s::db_root, _dbiIndex::dbi_cachesize, _dbiIndex::dbi_cl_timeout, _dbiIndex::dbi_ecflags, _dbiIndex::dbi_eflags, _dbiIndex::dbi_host, _dbiIndex::dbi_mmapsize, _dbiIndex::dbi_no_fsync, _dbiIndex::dbi_oeflags, _dbiIndex::dbi_perms, _dbiIndex::dbi_root, _dbiIndex::dbi_rpmdb, _dbiIndex::dbi_shmkey, _dbiIndex::dbi_sv_timeout, _dbiIndex::dbi_tmpdir, _dbiIndex::dbi_verbose, prDbiOpenFlags(), rpmGenPath(), RPMMESS_DEBUG, and rpmMessage.
Referenced by db3open().