mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
Only use tool IDL cache when multithreaded
This commit is contained in:
parent
52db507de0
commit
2014460eb5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user