Blame SOURCES/0005-Issue-49624-modrdn-silently-fails-if-DB-deadlock-occ.patch

a3727e
From f50dfbb61224e6a9516b93cd3d3957c1fde4798e Mon Sep 17 00:00:00 2001
a3727e
From: Mark Reynolds <mreynolds@redhat.com>
a3727e
Date: Thu, 22 Aug 2019 10:26:24 -0400
a3727e
Subject: [PATCH] Issue 49624 - modrdn silently fails if DB deadlock occurs
a3727e
a3727e
Bug Description:
a3727e
a3727e
If a DB Deadlock error occurs during a modrdn operation the entry
a3727e
cache gets updated (corrupted), but the update is not applied to
a3727e
the database.
a3727e
a3727e
Fix Description:
a3727e
a3727e
Looks like there was a copy & paste error, and the wrong attribute
a3727e
was updated during the retry of the modrdn operation.
a3727e
a3727e
relates: https://pagure.io/389-ds-base/issue/49624
a3727e
a3727e
Reviewed by: lkrispenz (Thanks!)
a3727e
---
a3727e
 ldap/servers/slapd/back-ldbm/ldbm_modrdn.c | 2 +-
a3727e
 1 file changed, 1 insertion(+), 1 deletion(-)
a3727e
a3727e
diff --git a/ldap/servers/slapd/back-ldbm/ldbm_modrdn.c b/ldap/servers/slapd/back-ldbm/ldbm_modrdn.c
a3727e
index 65610d613..433ed88fb 100644
a3727e
--- a/ldap/servers/slapd/back-ldbm/ldbm_modrdn.c
a3727e
+++ b/ldap/servers/slapd/back-ldbm/ldbm_modrdn.c
a3727e
@@ -251,7 +251,7 @@ ldbm_back_modrdn(Slapi_PBlock *pb)
a3727e
             slapi_pblock_get(pb, SLAPI_MODRDN_NEWSUPERIOR_SDN, &dn_newsuperiordn);
a3727e
             slapi_sdn_free(&dn_newsuperiordn);
a3727e
             slapi_pblock_set(pb, SLAPI_MODRDN_NEWSUPERIOR_SDN, orig_dn_newsuperiordn);
a3727e
-            orig_dn_newsuperiordn = slapi_sdn_dup(orig_dn_newsuperiordn);
a3727e
+            dn_newsuperiordn = slapi_sdn_dup(orig_dn_newsuperiordn);
a3727e
             /* must duplicate ec before returning it to cache,
a3727e
              * which could free the entry. */
a3727e
             if ((tmpentry = backentry_dup(original_entry ? original_entry : ec)) == NULL) {
a3727e
-- 
a3727e
2.21.0
a3727e