mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-30 19:49:35 -05:00
More for prev - keep eifree at a reasonable number
This commit is contained in:
parent
8ba8500ff1
commit
7198869342
1 changed files with 4 additions and 1 deletions
|
|
@ -673,8 +673,11 @@ bdb_cache_lru_purge( struct bdb_info *bdb )
|
|||
|
||||
if ( bdb->bi_cache.c_cursize > bdb->bi_cache.c_maxsize )
|
||||
efree = bdb->bi_cache.c_minfree;
|
||||
if ( bdb->bi_cache.c_leaves > eimax )
|
||||
if ( bdb->bi_cache.c_leaves > eimax ) {
|
||||
eifree = bdb->bi_cache.c_minfree * 10;
|
||||
if ( eifree >= eimax )
|
||||
eifree = eimax / 2;
|
||||
}
|
||||
|
||||
if ( !efree && !eifree ) {
|
||||
ldap_pvt_thread_mutex_unlock( &bdb->bi_cache.c_lru_mutex );
|
||||
|
|
|
|||
Loading…
Reference in a new issue