From 1d16ee5622de93e5ed9cc1a3cfa2df1ddfd0d593 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 19 Mar 2009 06:06:37 +0000 Subject: [PATCH] One more tweak for #5860 --- servers/slapd/back-bdb/cache.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.5