mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-02-17 14:00:30 +08:00
Import add.c cache_set_state deadlock fix.
This commit is contained in:
parent
39f93be77b
commit
bf02252059
@ -221,8 +221,6 @@ ldbm_back_add(
|
||||
rc = 0;
|
||||
|
||||
return_results:;
|
||||
cache_set_state( &li->li_cache, e, 0 );
|
||||
|
||||
if (p != NULL) {
|
||||
/* free parent and writer lock */
|
||||
cache_return_entry_w( &li->li_cache, p );
|
||||
@ -233,6 +231,8 @@ return_results:;
|
||||
pthread_mutex_unlock(&li->li_root_mutex);
|
||||
}
|
||||
|
||||
cache_set_state( &li->li_cache, e, 0 );
|
||||
|
||||
/* free entry and writer lock */
|
||||
cache_return_entry_w( &li->li_cache, e );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user