From ecb06964c535d1131769c61d62aa9ed031c180be Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Wed, 17 Jan 2007 02:46:41 +0000 Subject: [PATCH] Cleanup prev commit --- servers/slapd/back-bdb/cache.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 -- 2.39.5