rpm  5.4.15
Macros | Functions | Variables
rpmtxn.c File Reference
#include "system.h"
#include <rpmiotypes.h>
#include <rpmtypes.h>
#include <rpmtag.h>
#include <rpmdb.h>
#include <rpmtxn.h>
#include "debug.h"
Include dependency graph for rpmtxn.c:

Go to the source code of this file.

Macros

#define _RPMDB_INTERNAL
 

Functions

uint32_t rpmtxnId (rpmtxn txn)
 
const char * rpmtxnName (rpmtxn txn)
 
int rpmtxnSetName (rpmtxn txn, const char *N)
 
int rpmtxnAbort (rpmtxn txn)
 
int rpmtxnBegin (rpmdb rpmdb, rpmtxn parent, rpmtxn *txnp)
 
int rpmtxnCommit (rpmtxn txn)
 
int rpmtxnCheckpoint (rpmdb rpmdb)
 

Variables

int _rpmtxn_debug = 0
 

Macro Definition Documentation

#define _RPMDB_INTERNAL

Definition at line 11 of file rpmtxn.c.

Function Documentation

int rpmtxnAbort ( rpmtxn  txn)

Definition at line 47 of file rpmtxn.c.

References _rpmtxn_debug, and __db_txn::abort.

Referenced by _rpmtsRun(), rpmcliImportPubkey(), and rpmpsmStage().

int rpmtxnBegin ( rpmdb  rpmdb,
rpmtxn  parent,
rpmtxn txnp 
)

Definition at line 56 of file rpmtxn.c.

References _rpmtxn_debug, DB_INIT_TXN, and __db_env::txn_begin.

Referenced by _rpmtsRun(), rpmcliImportPubkey(), and rpmpsmStage().

int rpmtxnCheckpoint ( rpmdb  rpmdb)

Definition at line 85 of file rpmtxn.c.

References _rpmtxn_debug, DB_INIT_TXN, and __db_env::txn_checkpoint.

Referenced by _rpmtsRun(), rpmcliImportPubkey(), and rpmtsRebuildDB().

int rpmtxnCommit ( rpmtxn  txn)

Definition at line 75 of file rpmtxn.c.

References _rpmtxn_debug, and __db_txn::commit.

Referenced by _rpmtsRun(), rpmcliImportPubkey(), and rpmpsmStage().

uint32_t rpmtxnId ( rpmtxn  txn)

Definition at line 22 of file rpmtxn.c.

References __db_txn::id.

const char* rpmtxnName ( rpmtxn  txn)

Definition at line 29 of file rpmtxn.c.

References __db_txn::get_name.

int rpmtxnSetName ( rpmtxn  txn,
const char *  N 
)

Definition at line 38 of file rpmtxn.c.

References _rpmtxn_debug, and __db_txn::set_name.

Variable Documentation

int _rpmtxn_debug = 0

Definition at line 20 of file rpmtxn.c.

Referenced by rpmtxnAbort(), rpmtxnBegin(), rpmtxnCheckpoint(), rpmtxnCommit(), and rpmtxnSetName().