mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-27 01:59:38 -05:00
Patch cache_delete_entry_internal() as suggested by
Daniel Carroll <dan@mesa7.mesa.colorado.edu> This patch ensures we try deleting the entry from both the dntree and the idtree.
This commit is contained in:
parent
9e97da14fb
commit
5d2accea50
1 changed files with 8 additions and 2 deletions
|
|
@ -417,18 +417,24 @@ cache_delete_entry_internal(
|
|||
Entry *e
|
||||
)
|
||||
{
|
||||
int rc = 0; /* return code */
|
||||
|
||||
/* dn tree */
|
||||
if ( avl_delete( &cache->c_dntree, (caddr_t) e, cache_entrydn_cmp )
|
||||
== NULL )
|
||||
{
|
||||
return( -1 );
|
||||
rc = -1;
|
||||
}
|
||||
|
||||
/* id tree */
|
||||
if ( avl_delete( &cache->c_idtree, (caddr_t) e, cache_entryid_cmp )
|
||||
== NULL )
|
||||
{
|
||||
return( -1 );
|
||||
rc = -1;
|
||||
}
|
||||
|
||||
if (rc != 0) {
|
||||
return rc;
|
||||
}
|
||||
|
||||
/* lru */
|
||||
|
|
|
|||
Loading…
Reference in a new issue