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:
Kurt Zeilenga 1998-12-18 18:06:30 +00:00
parent 9e97da14fb
commit 5d2accea50

View file

@ -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 */