From: Kurt Zeilenga Date: Fri, 22 Jan 1999 01:51:53 +0000 (+0000) Subject: Don't return nextid on failed add operations for safety. X-Git-Tag: OPENLDAP_SLAPD_BACK_LDAP~720 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2318ea0fd6d8a5d5b561cfdf91e6578ba66f952a;p=openldap Don't return nextid on failed add operations for safety. --- diff --git a/servers/slapd/back-ldbm/nextid.c b/servers/slapd/back-ldbm/nextid.c index 594e542a21..ac899e05f7 100644 --- a/servers/slapd/back-ldbm/nextid.c +++ b/servers/slapd/back-ldbm/nextid.c @@ -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