From: Howard Chu Date: Fri, 27 Jan 2012 19:21:04 +0000 (-0800) Subject: ITS#7052 syncrepl deletes should ignore some errors X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3be354d0d2e13c8f38a16459187770900827f209;p=openldap ITS#7052 syncrepl deletes should ignore some errors Treat LDAP_NO_SUCH_OBJECT as success, otherwise the consumer will abort and start a new refresh for no good reason. --- diff --git a/servers/slapd/syncrepl.c b/servers/slapd/syncrepl.c index 1dcf979ac6..6acdaf2077 100644 --- a/servers/slapd/syncrepl.c +++ b/servers/slapd/syncrepl.c @@ -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 ) {