mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-25 00:59:45 -05:00
Use bdb_unlocked_cache_return; lock ended when TXN ended.
This commit is contained in:
parent
1a14def903
commit
1756206598
1 changed files with 2 additions and 2 deletions
|
|
@ -112,7 +112,7 @@ bdb_exop_passwd(
|
|||
retry: /* transaction retry */
|
||||
if ( e != NULL ) {
|
||||
bdb_cache_delete_entry(&bdb->bi_cache, e);
|
||||
bdb_cache_return_entry_w(bdb->bi_dbenv, &bdb->bi_cache, e, &lock);
|
||||
bdb_unlocked_cache_return_entry_w(&bdb->bi_cache, e);
|
||||
}
|
||||
#ifdef NEW_LOGGING
|
||||
LDAP_LOG ( ACL, DETAIL1, "bdb_exop_passwd: retrying...\n", 0, 0, 0 );
|
||||
|
|
@ -264,7 +264,7 @@ retry: /* transaction retry */
|
|||
|
||||
done:
|
||||
if( e != NULL ) {
|
||||
bdb_cache_return_entry_w( bdb->bi_dbenv, &bdb->bi_cache, e, &lock );
|
||||
bdb_unlocked_cache_return_entry_w( &bdb->bi_cache, e );
|
||||
}
|
||||
|
||||
if( hash.bv_val != NULL ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue