From d84ffb62a6c7528ef711547194307af629e0d082 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Fri, 25 Nov 2005 22:50:25 +0000 Subject: [PATCH] ITS#4210 don't setup indexing threads if no indexing is defined. --- servers/slapd/back-bdb/tools.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ); -- 2.39.5