Commit e8a2ac62 authored by Quanah Gibson-Mount's avatar Quanah Gibson-Mount
Browse files

More for ITS#5860

parent 2df658ba
......@@ -674,8 +674,12 @@ bdb_cache_lru_purge( struct bdb_info *bdb )
else
eimax = bdb->bi_cache.c_eimax;
if ( bdb->bi_cache.c_cursize > bdb->bi_cache.c_maxsize )
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;
if ( bdb->bi_cache.c_leaves > eimax ) {
eifree = bdb->bi_cache.c_minfree * 10;
if ( eifree >= eimax )
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment