diff options
Diffstat (limited to 'databases/openldap/patches')
-rw-r--r-- | databases/openldap/patches/patch-ae | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/databases/openldap/patches/patch-ae b/databases/openldap/patches/patch-ae deleted file mode 100644 index 870db5d78b5..00000000000 --- a/databases/openldap/patches/patch-ae +++ /dev/null @@ -1,34 +0,0 @@ -$NetBSD: patch-ae,v 1.2 2004/02/14 11:31:50 jlam Exp $ - ---- servers/slapd/back-bdb/init.c.orig Sat Nov 29 04:59:10 2003 -+++ servers/slapd/back-bdb/init.c -@@ -461,17 +461,19 @@ bdb_db_close( BackendDB *be ) - bdb_cache_release_all (&bdb->bi_cache); - - #ifdef SLAP_IDL_CACHE -- ldap_pvt_thread_mutex_lock ( &bdb->bi_idl_tree_mutex ); -- entry = bdb->bi_idl_lru_head; -- while ( entry != NULL ) { -- next_entry = entry->idl_lru_next; -- avl_delete( &bdb->bi_idl_tree, (caddr_t) entry, bdb_idl_entry_cmp ); -- free( entry->idl ); -- free( entry->kstr.bv_val ); -- free( entry ); -- entry = next_entry; -+ if ( bdb->bi_idl_cache_max_size ) { -+ ldap_pvt_thread_mutex_lock ( &bdb->bi_idl_tree_mutex ); -+ entry = bdb->bi_idl_lru_head; -+ while ( entry != NULL ) { -+ next_entry = entry->idl_lru_next; -+ avl_delete( &bdb->bi_idl_tree, (caddr_t) entry, bdb_idl_entry_cmp ); -+ free( entry->idl ); -+ free( entry->kstr.bv_val ); -+ free( entry ); -+ entry = next_entry; -+ } -+ ldap_pvt_thread_mutex_unlock ( &bdb->bi_idl_tree_mutex ); - } -- ldap_pvt_thread_mutex_unlock ( &bdb->bi_idl_tree_mutex ); - #endif - - return 0; |