Don't return nextid on failed add operations for safety.

This commit is contained in:
Kurt Zeilenga 1999-01-22 01:51:53 +00:00
parent 149d0d8b82
commit 2318ea0fd6

View 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