From: Howard Chu Date: Wed, 17 Jan 2007 02:46:41 +0000 (+0000) Subject: Cleanup prev commit X-Git-Tag: OPENLDAP_REL_ENG_2_4_4ALPHA~8^2~177 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ecb06964c535d1131769c61d62aa9ed031c180be;p=openldap Cleanup prev commit --- diff --git a/servers/slapd/back-bdb/cache.c b/servers/slapd/back-bdb/cache.c index 71e7c79d4d..2afee6ff85 100644 --- a/servers/slapd/back-bdb/cache.c +++ b/servers/slapd/back-bdb/cache.c @@ -65,6 +65,7 @@ bdb_cache_entryinfo_new( Cache *cache ) cache->c_eifree = ei->bei_lrunext; } ldap_pvt_thread_mutex_unlock( &cache->c_eifree_mutex ); + ei->bei_finders = 0; } if ( !ei ) { ei = ch_calloc(1, sizeof(EntryInfo)); @@ -72,7 +73,6 @@ bdb_cache_entryinfo_new( Cache *cache ) } ei->bei_state = CACHE_ENTRY_REFERENCED; - ei->bei_finders = 0; return ei; } @@ -314,7 +314,6 @@ bdb_entryinfo_add_internal( if (avl_insert( &bdb->bi_cache.c_idtree, ei2, bdb_id_cmp, bdb_id_dup_err )) { EntryInfo *eix = (EntryInfo *)ei2->bei_e; - eix = avl_find( bdb->bi_cache.c_idtree, ei2, bdb_id_cmp ); bdb_cache_entryinfo_free( &bdb->bi_cache, ei2 ); ei2 = eix; #ifdef BDB_HIER