Turn these functions on again. Need backend_attribute for SASLauthz stuff.

Fix to work with NULL op.
This commit is contained in:
Howard Chu 2002-05-07 22:35:01 +00:00
parent a067d64c3a
commit 3831d98237
3 changed files with 5 additions and 3 deletions

View File

@ -30,7 +30,7 @@ bdb_attribute(
BerVarray *vals )
{
struct bdb_info *bdb = (struct bdb_info *) be->be_private;
struct bdb_op_info *boi = (struct bdb_op_info *) op->o_private;
struct bdb_op_info *boi = NULL;
DB_TXN *txn = NULL;
Entry *e;
int i, j = 0, rc;
@ -60,6 +60,7 @@ bdb_attribute(
target ? target->e_ndn : "", 0, 0 );
#endif
if( op ) boi = (struct bdb_op_info *) op->o_private;
if( boi != NULL && be == boi->boi_bdb ) {
txn = boi->boi_txn;
}

View File

@ -34,7 +34,7 @@ bdb_group(
)
{
struct bdb_info *bdb = (struct bdb_info *) be->be_private;
struct bdb_op_info *boi = (struct bdb_op_info *) op->o_private;
struct bdb_op_info *boi = NULL;
DB_TXN *txn = NULL;
Entry *e;
int rc = 1;
@ -71,6 +71,7 @@ bdb_group(
target->e_ndn, 0, 0 );
#endif
if( op ) boi = (struct bdb_op_info *) op->o_private;
if( boi != NULL && be == boi->boi_bdb ) {
txn = boi->boi_txn;
}

View File

@ -561,7 +561,7 @@ bdb_initialize(
bi->bi_extended = bdb_extended;
#if 0
#if 1
/*
* these routines (and their callers) are not yet designed
* to work with transaction. Using them may cause deadlock.