From: Howard Chu Date: Wed, 15 Nov 2006 01:20:34 +0000 (+0000) Subject: Don't bother setting up threads if there are no indexed attrs (unlikely...) X-Git-Tag: OPENLDAP_REL_ENG_2_4_4ALPHA~8^2~471 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ee0026ec1e6c21c0321155e26a2218a32e1b0c02;p=openldap Don't bother setting up threads if there are no indexed attrs (unlikely...) --- 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;