From f14561d59d3b7eec0c3e735229e17fd2fc7cfaba Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Tue, 25 Mar 2003 20:17:05 +0000 Subject: [PATCH] #if out unused cache rdwr locks --- servers/slapd/back-bdb/cache.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/servers/slapd/back-bdb/cache.c b/servers/slapd/back-bdb/cache.c index ef753b29e1..d7ebd7ba1b 100644 --- a/servers/slapd/back-bdb/cache.c +++ b/servers/slapd/back-bdb/cache.c @@ -19,7 +19,9 @@ /* 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 @@ -101,6 +103,7 @@ bdb_cache_entry_rdwr_unlock(Entry *e, int rw) } #endif /* unused */ +#if 0 static int bdb_cache_entry_rdwr_init(Entry *e) { @@ -112,6 +115,7 @@ bdb_cache_entry_rdwr_destroy(Entry *e) { return ldap_pvt_thread_rdwr_destroy( &BEI(e)->bei_rdwr ); } +#endif static int bdb_cache_entry_private_init( Entry *e ) @@ -125,11 +129,13 @@ 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; } @@ -205,7 +211,9 @@ bdb_cache_entry_private_destroy( Entry *e ) { assert( e->e_private ); +#if 0 bdb_cache_entry_rdwr_destroy( e ); +#endif free( e->e_private ); e->e_private = NULL; -- 2.39.5