From: Howard Chu Date: Fri, 25 Nov 2005 22:50:25 +0000 (+0000) Subject: ITS#4210 don't setup indexing threads if no indexing is defined. X-Git-Tag: OPENLDAP_REL_ENG_2_4_BP~686 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d84ffb62a6c7528ef711547194307af629e0d082;p=openldap ITS#4210 don't setup indexing threads if no indexing is defined. --- diff --git a/servers/slapd/back-bdb/tools.c b/servers/slapd/back-bdb/tools.c index 09d25571ae..9c97048485 100644 --- a/servers/slapd/back-bdb/tools.c +++ b/servers/slapd/back-bdb/tools.c @@ -93,7 +93,8 @@ int bdb_tool_entry_open( } /* Set up for threaded slapindex */ - if (( slapMode & (SLAP_TOOL_QUICK|SLAP_TOOL_READONLY)) == SLAP_TOOL_QUICK) { + if (( slapMode & (SLAP_TOOL_QUICK|SLAP_TOOL_READONLY)) == SLAP_TOOL_QUICK + && bdb->bi_nattrs ) { if ( !bdb_tool_info ) { int i; ldap_pvt_thread_mutex_init( &bdb_tool_index_mutex );