]> git.sur5r.net Git - openldap/commitdiff
Use bdb_unlocked_cache_return; lock ended when TXN ended.
authorHoward Chu <hyc@openldap.org>
Fri, 14 Feb 2003 22:30:07 +0000 (22:30 +0000)
committerHoward Chu <hyc@openldap.org>
Fri, 14 Feb 2003 22:30:07 +0000 (22:30 +0000)
servers/slapd/back-bdb/passwd.c

index 87451ba30734db2b5b7546820e40bd208e8fe1f6..d801fb926082891fffb37868102fd109796be6c6 100644 (file)
@@ -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 ) {