fix database operations in tool mode (ITS#3622)

This commit is contained in:
Pierangelo Masarati 2005-04-01 12:20:02 +00:00
parent f9917a9c16
commit ae3f784d5b

View file

@ -1245,6 +1245,11 @@ bdb_txn_get( Operation *op, DB_ENV *env, DB_TXN **txn, int reset )
int i, rc;
void *ctx, *data = NULL;
if ( slapMode & SLAP_TOOL_MODE ) {
*txn = NULL;
return 0;
}
/* If no op was provided, try to find the ctx anyway... */
if ( op ) {
ctx = op->o_threadctx;