mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-25 00:59:45 -05:00
Don't return nextid on failed add operations for safety.
This commit is contained in:
parent
149d0d8b82
commit
2318ea0fd6
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue