From: Howard Chu Date: Mon, 7 Nov 2011 20:02:02 +0000 (-0800) Subject: Fix Quickmode crash X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9f22ced88b09c7c1be097392bb577872ac128ef1;p=openldap Fix Quickmode crash --- diff --git a/servers/slapd/back-bdb/tools.c b/servers/slapd/back-bdb/tools.c index 95e640eaa1..ec8117644e 100644 --- a/servers/slapd/back-bdb/tools.c +++ b/servers/slapd/back-bdb/tools.c @@ -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;