]> git.sur5r.net Git - openldap/commitdiff
ITS#4210 don't setup indexing threads if no indexing is defined.
authorHoward Chu <hyc@openldap.org>
Fri, 25 Nov 2005 22:50:25 +0000 (22:50 +0000)
committerHoward Chu <hyc@openldap.org>
Fri, 25 Nov 2005 22:50:25 +0000 (22:50 +0000)
servers/slapd/back-bdb/tools.c

index 09d25571ae0812c668d661fa39a83299656c7d1f..9c970484852598698839d547f65f08041d0d7f96 100644 (file)
@@ -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 );