More for ITS#5860

This commit is contained in:
Howard Chu 2009-03-18 11:21:53 +00:00
parent 7f2f9c4b30
commit 0121f8c01d

View File

@ -737,6 +737,13 @@ bdb_cache_lru_purge( struct bdb_info *bdb )
/* Free entry for this node if it's present */
if ( elru->bei_e ) {
ecount++;
/* the cache may have gone over the limit while we
* weren't looking, so double check.
*/
if ( !efree && ecount > bdb->bi_cache.c_maxsize )
efree = bdb->bi_cache.c_minfree;
if ( count < efree ) {
elru->bei_e->e_private = NULL;
#ifdef SLAP_ZONE_ALLOC