From ae3f784d5b8b022fc8bb5ecd2e612d9b1cdd13ed Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Fri, 1 Apr 2005 12:20:02 +0000 Subject: [PATCH] fix database operations in tool mode (ITS#3622) --- servers/slapd/back-bdb/cache.c | 5 +++++ 1 file changed, 5 insertions(+) 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; -- 2.39.5