mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 16:49:39 -05:00
Fix cache consistency problems on txn retry
This commit is contained in:
parent
21a95f4309
commit
009afb4bd7
1 changed files with 3 additions and 0 deletions
|
|
@ -82,12 +82,15 @@ retry: /* transaction retry */
|
|||
if (e != NULL) {
|
||||
bdb_cache_delete_entry(&bdb->bi_cache, e);
|
||||
bdb_unlocked_cache_return_entry_w(&bdb->bi_cache, e);
|
||||
e = NULL;
|
||||
}
|
||||
if (p != NULL) {
|
||||
bdb_unlocked_cache_return_entry_r(&bdb->bi_cache, p);
|
||||
p = NULL;
|
||||
}
|
||||
if (np != NULL) {
|
||||
bdb_unlocked_cache_return_entry_r(&bdb->bi_cache, np);
|
||||
np = NULL;
|
||||
}
|
||||
#ifdef NEW_LOGGING
|
||||
LDAP_LOG ( OPERATION, DETAIL1, "==>bdb_modrdn: retrying...\n", 0, 0, 0);
|
||||
|
|
|
|||
Loading…
Reference in a new issue