goto try_again;
}
- /* free cache read lock */
- ldap_pvt_thread_rdwr_runlock( &cache->c_rwlock );
-
/* set lru mutex */
ldap_pvt_thread_mutex_lock( &cache->lru_mutex );
/* free lru mutex */
ldap_pvt_thread_mutex_unlock( &cache->lru_mutex );
+ /* free cache read lock */
+ ldap_pvt_thread_rdwr_runlock( &cache->c_rwlock );
+
#ifdef NEW_LOGGING
LDAP_LOG( CACHE, DETAIL1,
"bdb_cache_find_entry_dn2id: (%s): %ld %d tries\n",
/* Mark entry in-use */
BEI(ep)->bei_refcnt++;
- /* free cache read lock */
- ldap_pvt_thread_rdwr_runlock( &cache->c_rwlock );
/* set lru mutex */
ldap_pvt_thread_mutex_lock( &cache->lru_mutex );
/* lru */
/* free lru mutex */
ldap_pvt_thread_mutex_unlock( &cache->lru_mutex );
+ /* free cache read lock */
+ ldap_pvt_thread_rdwr_runlock( &cache->c_rwlock );
#ifdef NEW_LOGGING
LDAP_LOG( CACHE, DETAIL1,