mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
fix database operations in tool mode (ITS#3622)
This commit is contained in:
parent
f9917a9c16
commit
ae3f784d5b
1 changed files with 5 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue