]> git.sur5r.net Git - openldap/commitdiff
More for 907b9d487753631371dd969b551b63c41cef30fd
authorHoward Chu <hyc@openldap.org>
Wed, 14 Aug 2013 10:51:29 +0000 (03:51 -0700)
committerHoward Chu <hyc@openldap.org>
Wed, 14 Aug 2013 10:51:29 +0000 (03:51 -0700)
op.o_extra is only used with threading

servers/slapd/back-mdb/tools.c

index a5408b5bb19fafa6f7f286addc322d5a46082b6b..2ad65fb57c265444f494caaa2246f3e063043ca5 100644 (file)
@@ -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,