]> git.sur5r.net Git - openldap/commitdiff
ITS#8800 remove originator check in syncprov_search_response
authorHoward Chu <hyc@openldap.org>
Fri, 2 Feb 2018 00:47:25 +0000 (00:47 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 8 Feb 2018 00:17:07 +0000 (00:17 +0000)
Let the entryCSN check do all the work. Reloading a server from an old
backup needs this to go thru.

servers/slapd/overlays/syncprov.c

index 9cb2077947b9308a5f97914d75739caec927adf3..8d355e0d68979674cecd5393ec1f74ed3b12d270 100644 (file)
@@ -2388,14 +2388,6 @@ syncprov_search_response( Operation *op, SlapReply *rs )
                        int i, sid;
                        sid = slap_parse_csn_sid( &a->a_nvals[0] );
 
-                       /* Don't send changed entries back to the originator */
-                       if ( sid == srs->sr_state.sid && srs->sr_state.numcsns ) {
-                               Debug( LDAP_DEBUG_SYNC,
-                                       "Entry %s changed by peer, ignored\n",
-                                       rs->sr_entry->e_name.bv_val, 0, 0 );
-                               return LDAP_SUCCESS;
-                       }
-
                        /* If not a persistent search */
                        if ( !ss->ss_so ) {
                                /* Make sure entry is less than the snapshot'd contextCSN */