]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#9342 delta-sync: ignore error if deleting an already deleted entry
authorHoward Chu <hyc@openldap.org>
Tue, 8 Sep 2020 20:25:30 +0000 (21:25 +0100)
committerHoward Chu <hyc@openldap.org>
Tue, 8 Sep 2020 23:19:35 +0000 (00:19 +0100)
servers/slapd/syncrepl.c

index f7f83cb775c3ca78e594619b19d9cd53e5ab26d8..154caa0a13e58e375a07a2f190a0f6fa08406033 100644 (file)
@@ -3033,6 +3033,9 @@ syncrepl_message_to_op(
                Debug( rc ? LDAP_DEBUG_ANY : LDAP_DEBUG_SYNC,
                        "syncrepl_message_to_op: %s be_delete %s (%d)\n", 
                        si->si_ridtxt, op->o_req_dn.bv_val, rc );
+               /* silently ignore this */
+               if ( rc == LDAP_NO_SUCH_OBJECT )
+                       rc = LDAP_SUCCESS;
                do_graduate = 0;
                break;
        }