Skip to content
Snippets Groups Projects
Commit 2014460e authored by Howard Chu's avatar Howard Chu
Browse files

Only use tool IDL cache when multithreaded

parent 52db507d
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment