ITS#4210 don't setup indexing threads if no indexing is defined.

This commit is contained in:
Howard Chu 2005-11-25 22:50:25 +00:00
parent b3c8a976ec
commit d84ffb62a6

View File

@ -93,7 +93,8 @@ int bdb_tool_entry_open(
} }
/* Set up for threaded slapindex */ /* 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 ) { if ( !bdb_tool_info ) {
int i; int i;
ldap_pvt_thread_mutex_init( &bdb_tool_index_mutex ); ldap_pvt_thread_mutex_init( &bdb_tool_index_mutex );