From: Howard Chu Date: Thu, 20 Oct 2011 20:46:39 +0000 (-0700) Subject: Only use tool IDL cache when multithreaded X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2014460eb56ad60886b8e0d5fc9fa9e856f23791;p=openldap Only use tool IDL cache when multithreaded --- diff --git a/servers/slapd/back-mdb/index.c b/servers/slapd/back-mdb/index.c index 58faf40444..2b71bc1a2a 100644 --- a/servers/slapd/back-mdb/index.c +++ b/servers/slapd/back-mdb/index.c @@ -190,7 +190,7 @@ static int indexer( if ( opid == SLAP_INDEX_ADD_OP ) { #ifdef MDB_TOOL_IDL_CACHING - if ( slapMode & SLAP_TOOL_QUICK ) { + if (( slapMode & SLAP_TOOL_QUICK ) && slap_tool_thread_max > 2 ) { keyfunc = mdb_tool_idl_add; mc = (MDB_cursor *)ai; } else