mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-27 01:59:38 -05:00
ITS#3494 fix deadlock
This commit is contained in:
parent
5f178fd3d1
commit
eb7deb9eba
1 changed files with 3 additions and 2 deletions
|
|
@ -919,11 +919,12 @@ bdb_cache_add(
|
|||
}
|
||||
bdb_cache_entryinfo_unlock( eip );
|
||||
|
||||
/* set lru mutex */
|
||||
ldap_pvt_thread_mutex_lock( &bdb->bi_cache.lru_mutex );
|
||||
++bdb->bi_cache.c_cursize;
|
||||
ldap_pvt_thread_rdwr_wunlock( &bdb->bi_cache.c_rwlock );
|
||||
|
||||
/* set lru mutex */
|
||||
ldap_pvt_thread_mutex_lock( &bdb->bi_cache.lru_mutex );
|
||||
|
||||
/* lru_mutex is unlocked for us */
|
||||
bdb_cache_lru_add( bdb, locker, new );
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue