]> git.sur5r.net Git - openldap/commitdiff
Fix Quickmode crash
authorHoward Chu <hyc@openldap.org>
Mon, 7 Nov 2011 20:02:02 +0000 (12:02 -0800)
committerHoward Chu <hyc@openldap.org>
Mon, 7 Nov 2011 20:02:57 +0000 (12:02 -0800)
servers/slapd/back-bdb/tools.c

index 95e640eaa149f41aedcd76d61781d87563d33e32..ec8117644e9722a5210e649aac33563d156d09c2 100644 (file)
@@ -587,7 +587,7 @@ bdb_tool_index_add(
        if ( !bdb->bi_nattrs )
                return 0;
 
-       if ( slapMode & SLAP_TOOL_QUICK ) {
+       if ( bdb_tool_threads > 1 ) {
                IndexRec *ir;
                int i, rc;
                Attribute *a;