/*
* remaining fields require backend cache lock to access
- * These items are specific to the LDBM backend and should
+ * These items are specific to the BDB backend and should
* be hidden.
*/
int bei_state; /* for the cache */
rw ? "w" : "r", e->e_id, 0);
#endif
-
if (rw)
return ldap_pvt_thread_rdwr_wtrylock(&BEI(e)->bei_rdwr);
else
rw ? "w" : "r", e->e_id, 0);
#endif
-
if (rw)
return ldap_pvt_thread_rdwr_wunlock(&BEI(e)->bei_rdwr);
else
rw ? "w" : "r", id, refcnt );
#endif
-
} else {
bdb_cache_entry_private_destroy( e );
if ( freeit ) {
"====> bdb_cache_return_entry_%s( %ld ): deleted (%d)\n",
rw ? "w" : "r", id, refcnt );
#endif
-
}
} else {
"====> bdb_cache_return_entry_%s( %ld ): returned (%d)\n",
rw ? "w" : "r", id, refcnt);
#endif
-
}
}
e->e_id, e->e_dn, 0 );
#endif
-
bdb_cache_entry_private_destroy(e);
return( 1 );
e->e_id, e->e_dn, 0 );
#endif
-
-
/* delete from dn tree inserted above */
if ( avl_delete( &cache->c_dntree, (caddr_t) e,
(AVL_CMP) entry_dn_cmp ) == NULL )
Debug( LDAP_DEBUG_ANY, "====> can't delete from dn cache\n",
0, 0, 0 );
#endif
-
}
bdb_cache_entry_private_destroy(e);
e->e_id, e->e_dn, 0 );
#endif
-
/* free cache mutex */
ldap_pvt_thread_mutex_unlock( &cache->c_mutex );
return( 1 );
e->e_id, e->e_dn, 0 );
#endif
-
/* delete from dn tree inserted above */
if ( avl_delete( &cache->c_dntree, (caddr_t) e,
(AVL_CMP) entry_dn_cmp ) == NULL )
Debug( LDAP_DEBUG_ANY, "====> can't delete from dn cache\n",
0, 0, 0 );
#endif
-
}
/* free cache mutex */
ndn->bv_val, id, count);
#endif
-
} else {
/* free cache mutex */
ldap_pvt_thread_mutex_unlock( &cache->c_mutex );
id, ep_id, state);
#endif
-
ldap_pvt_thread_yield();
goto try_again;
}
id, ep_id, state);
#endif
-
ldap_pvt_thread_yield();
goto try_again;
}
e->e_id, 0, 0 );
#endif
-
rc = bdb_cache_delete_entry_internal( cache, e );
/* free cache mutex */
Debug( LDAP_DEBUG_TRACE, "====> bdb_cache_release_all\n", 0, 0, 0 );
#endif
-
while ( (e = cache->c_lrutail) != NULL && BEI(e)->bei_refcnt == 0 ) {
#ifdef LDAP_RDWR_DEBUG
assert(!ldap_pvt_thread_rdwr_active(&BEI(e)->bei_rdwr));
}
#ifdef LDAP_DEBUG
-
static void
bdb_lru_print( Cache *cache )
{
e->e_dn, e->e_id, BEI(e)->bei_refcnt );
}
}
-
#endif