]> git.sur5r.net Git - openldap/commitdiff
ITS#7488 disable threaded indexer for now
authorHoward Chu <hyc@openldap.org>
Wed, 9 Jan 2013 17:07:29 +0000 (09:07 -0800)
committerQuanah Gibson-Mount <quanah@openldap.org>
Wed, 9 Jan 2013 20:49:30 +0000 (12:49 -0800)
No time to find the bug at the moment.
There's no performance benefit anyway.

servers/slapd/back-mdb/tools.c

index 6aae331484f76c33499849bf2ebf493667d09300..d7196f02017dfaee5b299be4dc1d85cc9d858185 100644 (file)
@@ -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;