From 175620659838bdfd038df7f889b8b8984ff049cb Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Fri, 14 Feb 2003 22:30:07 +0000 Subject: [PATCH] Use bdb_unlocked_cache_return; lock ended when TXN ended. --- servers/slapd/back-bdb/passwd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/servers/slapd/back-bdb/passwd.c b/servers/slapd/back-bdb/passwd.c index 87451ba307..d801fb9260 100644 --- a/servers/slapd/back-bdb/passwd.c +++ b/servers/slapd/back-bdb/passwd.c @@ -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 ) { -- 2.39.5