]> 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)
committerQuanah Gibson-Mount <quanah@openldap.org>
Wed, 9 Sep 2020 16:36:19 +0000 (16:36 +0000)
servers/slapd/syncrepl.c

index 48eb6a8c23179934b4dd403d4d1967873b35121c..a8b1e72cc8aac70175097db65c06f59cea4f38e9 100644 (file)
@@ -2654,6 +2654,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;
        }