mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-24 13:24:56 +08:00
ITS#3358 - make bdb_cache_lru_add skip entries that are being deleted
This commit is contained in:
parent
fbe8243b86
commit
e7ec96fc6d
@ -527,9 +527,10 @@ bdb_cache_lru_add(
|
||||
lockp ) == 0 ) {
|
||||
/* If there's no entry, or this node is in
|
||||
* the process of linking into the cache,
|
||||
* skip it.
|
||||
* or this node is being deleted, skip it.
|
||||
*/
|
||||
if ( !elru->bei_e || (elru->bei_state & CACHE_ENTRY_NOT_LINKED) ) {
|
||||
if ( !elru->bei_e || (elru->bei_state &
|
||||
( CACHE_ENTRY_NOT_LINKED | CACHE_ENTRY_DELETED ))) {
|
||||
bdb_cache_entry_db_unlock( bdb->bi_dbenv, lockp );
|
||||
continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user