/* BDB backend specific entry info -- visible only to the cache */
typedef struct bdb_entry_info {
+#if 0
ldap_pvt_thread_rdwr_t bei_rdwr; /* reader/writer lock */
+#endif
/*
* remaining fields require backend cache lock to access
}
#endif /* unused */
+#if 0
static int
bdb_cache_entry_rdwr_init(Entry *e)
{
{
return ldap_pvt_thread_rdwr_destroy( &BEI(e)->bei_rdwr );
}
+#endif
static int
bdb_cache_entry_private_init( Entry *e )
e->e_private = ch_calloc(1, sizeof(struct bdb_entry_info));
+#if 0
if( bdb_cache_entry_rdwr_init( e ) != 0 ) {
free( BEI(e) );
e->e_private = NULL;
return 1;
}
+#endif
return 0;
}
{
assert( e->e_private );
+#if 0
bdb_cache_entry_rdwr_destroy( e );
+#endif
free( e->e_private );
e->e_private = NULL;