X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=servers%2Fslapd%2Fback-mdb%2Findex.c;h=51a14811eecda63c2f5987bc4c738c9391721a8c;hb=4f05d992f2146921dbc13d3477de9918f20172b9;hp=8306dbd691114510d5060d88d8526d3a91bc0a02;hpb=6062cd9777bd2e1d9d99e5b3d5e25d0dab87f7ba;p=openldap diff --git a/servers/slapd/back-mdb/index.c b/servers/slapd/back-mdb/index.c index 8306dbd691..51a14811ee 100644 --- a/servers/slapd/back-mdb/index.c +++ b/servers/slapd/back-mdb/index.c @@ -2,7 +2,7 @@ /* $OpenLDAP$ */ /* This work is part of OpenLDAP Software . * - * Copyright 2000-2012 The OpenLDAP Foundation. + * Copyright 2000-2014 The OpenLDAP Foundation. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -191,8 +191,10 @@ static int indexer( if ( opid == SLAP_INDEX_ADD_OP ) { #ifdef MDB_TOOL_IDL_CACHING if (( slapMode & SLAP_TOOL_QUICK ) && slap_tool_thread_max > 2 ) { + AttrIxInfo *ax = (AttrIxInfo *)LDAP_SLIST_FIRST(&op->o_extra); + ax->ai_ai = ai; keyfunc = mdb_tool_idl_add; - mc = (MDB_cursor *)ai; + mc = (MDB_cursor *)ax; } else #endif keyfunc = mdb_idl_insert_keys;