From: Howard Chu Date: Wed, 9 Jan 2013 17:07:29 +0000 (-0800) Subject: ITS#7488 disable threaded indexer for now X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=acec27ec943aec338887e3ba191134a5de673a72;p=openldap ITS#7488 disable threaded indexer for now No time to find the bug at the moment. There's no performance benefit anyway. --- diff --git a/servers/slapd/back-mdb/tools.c b/servers/slapd/back-mdb/tools.c index 693b800593..7b490a595f 100644 --- a/servers/slapd/back-mdb/tools.c +++ b/servers/slapd/back-mdb/tools.c @@ -106,7 +106,9 @@ int mdb_tool_entry_open( ldap_pvt_thread_cond_init( &mdb_tool_index_cond_work ); if ( mdb->mi_nattrs ) { int i; +#if 0 /* threaded indexing has no performance advantage */ mdb_tool_threads = slap_tool_thread_max - 1; +#endif if ( mdb_tool_threads > 1 ) { mdb_tool_index_rec = ch_calloc( mdb->mi_nattrs, sizeof( IndexRec )); mdb_tool_index_tcount = mdb_tool_threads - 1;