Import cache_delete_entry_internal/dntree&idtree delete fix from -devel.

This commit is contained in:
Kurt Zeilenga 1998-12-20 20:46:24 +00:00
parent 8a89fd729e
commit 92507af85c

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