]> git.sur5r.net Git - openldap/commitdiff
ITS#7052 syncrepl deletes should ignore some errors
authorHoward Chu <hyc@openldap.org>
Fri, 27 Jan 2012 19:21:04 +0000 (11:21 -0800)
committerHoward Chu <hyc@openldap.org>
Fri, 27 Jan 2012 19:21:04 +0000 (11:21 -0800)
Treat LDAP_NO_SUCH_OBJECT as success, otherwise the consumer will
abort and start a new refresh for no good reason.

servers/slapd/syncrepl.c

index 1dcf979ac69b2616035df85e3cffe582d55561b3..6acdaf20774797fc63fccb33c7d110d5a4aba8bc 100644 (file)
@@ -3181,6 +3181,8 @@ retry_modrdn:;
                        Debug( LDAP_DEBUG_SYNC,
                                        "syncrepl_entry: %s be_delete %s (%d)\n", 
                                        si->si_ridtxt, op->o_req_dn.bv_val, rc );
+                       if ( rc == LDAP_NO_SUCH_OBJECT )
+                               rc = LDAP_SUCCESS;
 
                        while ( rs_delete.sr_err == LDAP_SUCCESS
                                && op->o_delete_glue_parent ) {