From: Pierangelo Masarati Date: Fri, 1 Apr 2005 12:20:02 +0000 (+0000) Subject: fix database operations in tool mode (ITS#3622) X-Git-Tag: OPENLDAP_AC_BP~1016 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ae3f784d5b8b022fc8bb5ecd2e612d9b1cdd13ed;p=openldap fix database operations in tool mode (ITS#3622) --- diff --git a/servers/slapd/back-bdb/cache.c b/servers/slapd/back-bdb/cache.c index ca07d0529b..dd7a661577 100644 --- a/servers/slapd/back-bdb/cache.c +++ b/servers/slapd/back-bdb/cache.c @@ -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;