From: Howard Chu Date: Wed, 12 Mar 2003 15:20:51 +0000 (+0000) Subject: Fix cache consistency problems on txn retry X-Git-Tag: NO_SLAP_OP_BLOCKS~134 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=009afb4bd7997987d1656df7d6812110a6e68e4e;p=openldap Fix cache consistency problems on txn retry --- diff --git a/servers/slapd/back-bdb/modrdn.c b/servers/slapd/back-bdb/modrdn.c index debf35832f..7365a2d655 100644 --- a/servers/slapd/back-bdb/modrdn.c +++ b/servers/slapd/back-bdb/modrdn.c @@ -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);