From ee0026ec1e6c21c0321155e26a2218a32e1b0c02 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Wed, 15 Nov 2006 01:20:34 +0000 Subject: [PATCH] Don't bother setting up threads if there are no indexed attrs (unlikely...) --- servers/slapd/back-bdb/tools.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/servers/slapd/back-bdb/tools.c b/servers/slapd/back-bdb/tools.c index 293beca6cf..f3830331c6 100644 --- a/servers/slapd/back-bdb/tools.c +++ b/servers/slapd/back-bdb/tools.c @@ -424,6 +424,9 @@ bdb_tool_index_add( { struct bdb_info *bdb = (struct bdb_info *) op->o_bd->be_private; + if ( !bdb->bi_nattrs ) + return 0; + if ( slapMode & SLAP_TOOL_QUICK ) { IndexRec *ir; int i, rc; -- 2.39.5