]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-ldbm/nextid.c
Import resetting of c_dn/c_cdn after anonymous bind.
[openldap] / servers / slapd / back-ldbm / nextid.c
index 594e542a21778ce8930bddb46519519e73518998..ac899e05f779ad41c48da2c189500b10826c0579 100644 (file)
@@ -109,6 +109,7 @@ next_id( Backend *be )
 void
 next_id_return( Backend *be, ID id )
 {
+#ifdef NEXT_ID_RETURN
        struct ldbminfo *li = (struct ldbminfo *) be->be_private;
 
        pthread_mutex_lock( &li->li_nextid_mutex );
@@ -122,6 +123,7 @@ next_id_return( Backend *be, ID id )
        (void) next_id_write( be, li->li_nextid );
 
        pthread_mutex_unlock( &li->li_nextid_mutex );
+#endif
 }
 
 ID