From 23116be5aef2880cfbdb998778070c6813f2f130 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 13 Dec 2007 08:02:40 +0000 Subject: [PATCH] More for -q tool mode --- servers/slapd/back-bdb/dn2id.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/servers/slapd/back-bdb/dn2id.c b/servers/slapd/back-bdb/dn2id.c index d4462365ce..7cf12c0bbe 100644 --- a/servers/slapd/back-bdb/dn2id.c +++ b/servers/slapd/back-bdb/dn2id.c @@ -33,6 +33,9 @@ bdb_dn2id_lock( struct bdb_info *bdb, struct berval *dn, DBT lockobj; int db_rw; + if (!locker) + return 0; + if (rw) db_rw = DB_LOCK_WRITE; else -- 2.39.5