mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
ITS#5860 more for prev commit
This commit is contained in:
parent
673405bc2e
commit
a59bdb2d5d
1 changed files with 2 additions and 1 deletions
|
|
@ -719,7 +719,8 @@ bdb_cache_lru_purge( struct bdb_info *bdb )
|
|||
bdb->bi_cache.c_txn, elru, 1, 1, lockp ) == 0 ) {
|
||||
|
||||
/* Free entry for this node if it's present */
|
||||
if ( elru->bei_e && bdb->bi_cache.c_cursize > bdb->bi_cache.c_maxsize ) {
|
||||
if ( elru->bei_e && bdb->bi_cache.c_cursize > bdb->bi_cache.c_maxsize &&
|
||||
count < bdb->bi_cache.c_minfree ) {
|
||||
elru->bei_e->e_private = NULL;
|
||||
#ifdef SLAP_ZONE_ALLOC
|
||||
bdb_entry_return( bdb, elru->bei_e, elru->bei_zseq );
|
||||
|
|
|
|||
Loading…
Reference in a new issue