From: Howard Chu Date: Sun, 25 Jan 2009 22:43:31 +0000 (+0000) Subject: ITS#5860 more for prev commit X-Git-Tag: ACLCHECK_0~957 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a59bdb2d5d4149a2acbded716d61d9f6b510ac4e;p=openldap ITS#5860 more for prev commit --- diff --git a/servers/slapd/back-bdb/cache.c b/servers/slapd/back-bdb/cache.c index e3fcfae9dc..89aea40a4e 100644 --- a/servers/slapd/back-bdb/cache.c +++ b/servers/slapd/back-bdb/cache.c @@ -719,7 +719,8 @@ bdb_cache_lru_purge( struct bdb_info *bdb ) bdb->bi_cache.c_txn, elru, 1, 1, lockp ) == 0 ) { /* Free entry for this node if it's present */ - if ( elru->bei_e && bdb->bi_cache.c_cursize > bdb->bi_cache.c_maxsize ) { + if ( elru->bei_e && bdb->bi_cache.c_cursize > bdb->bi_cache.c_maxsize && + count < bdb->bi_cache.c_minfree ) { elru->bei_e->e_private = NULL; #ifdef SLAP_ZONE_ALLOC bdb_entry_return( bdb, elru->bei_e, elru->bei_zseq );