Skip to content
Snippets Groups Projects
Commit 2318ea0f authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

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

parent 149d0d8b
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment