Fix to work with NULL op.
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;
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;
}
)
{
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;
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;
}
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.