Only use tool IDL cache when multithreaded

This commit is contained in:
Howard Chu 2011-10-20 13:46:39 -07:00
parent 52db507de0
commit 2014460eb5

View File

@ -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