Full_Name: Hallvard B. Furuseth Version: HEAD (2002-04-15) OS: Linux URL: http://folk.uio.no/hbf/OpenLDAP/lru_mutex.txt Submission from: (NULL) (158.36.148.34) The first ldap_pvt_thread_mutex_unlock() in bdb_cache_add_entry_rw() should be ldap_pvt_thread_rdwr_wunlock( &cache->c_rwlock ); Also, bdb's mutexes and rdwr locks are never destroyed. Here is a patch.