]> git.sur5r.net Git - openldap/commitdiff
ITS#5809 renames are not exclusive from modifies
authorHoward Chu <hyc@openldap.org>
Thu, 13 Nov 2008 22:46:49 +0000 (22:46 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 13 Nov 2008 22:46:49 +0000 (22:46 +0000)
servers/slapd/syncrepl.c

index 476cdae5536f2fc4dc37466610a62c47f6765a29..96b5754e87cfe4f60fef15e747ae9a2cc28f09ad 100644 (file)
@@ -2273,7 +2273,7 @@ retry_add:;
                                        "syncrepl_entry: %s be_modrdn (%d)\n", 
                                        si->si_ridtxt, rc, 0 );
                        op->o_bd = be;
-                       goto done;
+                       /* Renamed entries may still have other mods so just fallthru */
                }
                if ( dni.mods ) {
                        op->o_tag = LDAP_REQ_MODIFY;
@@ -3049,8 +3049,10 @@ dn_callback(
                                        {
                                                dni->delOldRDN = 1;
                                        }
-                                       /* OK, this was just a modDN, we're done */
-                                       return LDAP_SUCCESS;
+                                       /* A ModDN has happened, but other changes may have
+                                        * occurred before we picked it up. So fallthru to
+                                        * regular Modify processing.
+                                        */
                                }
 
                                modtail = &dni->mods;