Remove unnneded boi_locker field

This commit is contained in:
Howard Chu 2007-12-28 07:44:41 +00:00
parent 7bc127aab8
commit 4068c51739
6 changed files with 1 additions and 7 deletions

View file

@ -174,7 +174,6 @@ retry: /* transaction retry */
opinfo.boi_bdb = op->o_bd;
opinfo.boi_txn = ltid;
opinfo.boi_locker = locker;
opinfo.boi_err = 0;
opinfo.boi_acl_cache = op->o_do_not_cache;
op->o_private = &opinfo;

View file

@ -269,7 +269,6 @@ struct bdb_lock_info {
struct bdb_op_info {
BackendDB* boi_bdb;
DB_TXN* boi_txn;
BDB_LOCKER boi_locker;
u_int32_t boi_err;
int boi_acl_cache;
struct bdb_lock_info *boi_locks; /* used when no txn */

View file

@ -157,7 +157,6 @@ retry: /* transaction retry */
opinfo.boi_bdb = op->o_bd;
opinfo.boi_txn = ltid;
opinfo.boi_locker = locker;
opinfo.boi_err = 0;
opinfo.boi_acl_cache = op->o_do_not_cache;
op->o_private = &opinfo;

View file

@ -331,12 +331,11 @@ int bdb_entry_get(
if( op ) boi = (struct bdb_op_info *) op->o_private;
if( boi != NULL && op->o_bd->be_private == boi->boi_bdb->be_private ) {
txn = boi->boi_txn;
locker = boi->boi_locker;
}
if ( txn != NULL ) {
locker = TXN_ID ( txn );
} else if ( !locker ) {
} else {
rc = LOCK_ID ( bdb->bi_dbenv, &locker );
free_lock_id = 1;
switch(rc) {

View file

@ -441,7 +441,6 @@ retry: /* transaction retry */
opinfo.boi_bdb = op->o_bd;
opinfo.boi_txn = ltid;
opinfo.boi_locker = locker;
opinfo.boi_err = 0;
opinfo.boi_acl_cache = op->o_do_not_cache;
op->o_private = &opinfo;

View file

@ -167,7 +167,6 @@ retry: /* transaction retry */
opinfo.boi_bdb = op->o_bd;
opinfo.boi_txn = ltid;
opinfo.boi_locker = locker;
opinfo.boi_err = 0;
opinfo.boi_acl_cache = op->o_do_not_cache;
op->o_private = &opinfo;