From: Howard Chu Date: Wed, 14 Aug 2013 10:51:29 +0000 (-0700) Subject: More for 907b9d487753631371dd969b551b63c41cef30fd X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5b2bfec3b4fa45dcfaed7780c7fdd42c4f69e75e;p=openldap More for 907b9d487753631371dd969b551b63c41cef30fd op.o_extra is only used with threading --- diff --git a/servers/slapd/back-mdb/tools.c b/servers/slapd/back-mdb/tools.c index a5408b5bb1..2ad65fb57c 100644 --- a/servers/slapd/back-mdb/tools.c +++ b/servers/slapd/back-mdb/tools.c @@ -706,7 +706,9 @@ ID mdb_tool_entry_put( goto done; } - LDAP_SLIST_INSERT_HEAD( &op.o_extra, &mdb_tool_axinfo[0]->ai_oe, oe_next ); + if ( mdb_tool_threads > 1 ) { + LDAP_SLIST_INSERT_HEAD( &op.o_extra, &mdb_tool_axinfo[0]->ai_oe, oe_next ); + } rc = mdb_tool_index_add( &op, txn, e ); if( rc != 0 ) { snprintf( text->bv_val, text->bv_len,