From: Howard Chu Date: Thu, 19 Mar 2009 06:06:37 +0000 (+0000) Subject: One more tweak for #5860 X-Git-Tag: ACLCHECK_0~666 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1d16ee5622de93e5ed9cc1a3cfa2df1ddfd0d593;p=openldap One more tweak for #5860 --- diff --git a/servers/slapd/back-bdb/cache.c b/servers/slapd/back-bdb/cache.c index 66071dccc7..e54408d659 100644 --- a/servers/slapd/back-bdb/cache.c +++ b/servers/slapd/back-bdb/cache.c @@ -677,8 +677,8 @@ bdb_cache_lru_purge( struct bdb_info *bdb ) efree = bdb->bi_cache.c_cursize - bdb->bi_cache.c_maxsize; if ( efree < 1 ) efree = 0; - else if (efree < bdb->bi_cache.c_minfree ) - efree = bdb->bi_cache.c_minfree; + else + efree += bdb->bi_cache.c_minfree; if ( bdb->bi_cache.c_leaves > eimax ) { eifree = bdb->bi_cache.c_minfree * 10;