From 3be354d0d2e13c8f38a16459187770900827f209 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Fri, 27 Jan 2012 11:21:04 -0800 Subject: [PATCH] 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. --- servers/slapd/syncrepl.c | 2 ++ 1 file changed, 2 insertions(+) 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 ) { -- 2.39.5