From: Quanah Gibson-Mount Date: Sat, 16 Dec 2006 01:37:27 +0000 (+0000) Subject: Don't bother setting up threads if there are no indexed attrs X-Git-Tag: OPENLDAP_REL_ENG_2_3_31~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0c96498da6cc4c91f980b1a23b6341aee3567a89;p=thirdparty%2Fopenldap.git Don't bother setting up threads if there are no indexed attrs --- diff --git a/servers/slapd/back-bdb/tools.c b/servers/slapd/back-bdb/tools.c index 167f3c7e5e..0bf9b1c793 100644 --- a/servers/slapd/back-bdb/tools.c +++ b/servers/slapd/back-bdb/tools.c @@ -391,6 +391,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;