ITS#2780, redundant cache add

This commit is contained in:
Howard Chu 2003-10-19 09:55:31 +00:00
parent 91ebcd87bd
commit 56498a59dd

View File

@ -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;