mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
ITS#2780, redundant cache add
This commit is contained in:
parent
91ebcd87bd
commit
56498a59dd
@ -744,6 +744,8 @@ bdb_cache_add(
|
||||
if ( eip->bei_dkids ) eip->bei_dkids++;
|
||||
#endif
|
||||
rc = bdb_entryinfo_add_internal( bdb, &ei, &new );
|
||||
/* bdb_csn_commit can cause this when adding the database root entry */
|
||||
if ( new->bei_e ) bdb_entry_return( new->bei_e );
|
||||
new->bei_e = e;
|
||||
e->e_private = new;
|
||||
new->bei_state = CACHE_ENTRY_NO_KIDS | CACHE_ENTRY_NO_GRANDKIDS;
|
||||
|
Loading…
Reference in New Issue
Block a user