mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-03-07 14:18:15 +08:00
Turn these functions on again. Need backend_attribute for SASLauthz stuff.
Fix to work with NULL op.
This commit is contained in:
parent
a067d64c3a
commit
3831d98237
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user