mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
More for ITS#5860
This commit is contained in:
parent
7f2f9c4b30
commit
0121f8c01d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user