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.
This commit is contained in:
Howard Chu 2012-01-27 11:21:04 -08:00
parent c922e5dbbd
commit 3be354d0d2

View 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 ) {