From: Howard Chu Date: Fri, 2 Feb 2018 00:47:25 +0000 (+0000) Subject: ITS#8800 remove originator check in syncprov_search_response X-Git-Tag: OPENLDAP_REL_ENG_2_4_46~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=41427fe3df396103f83daeba42f4635ba454833f;p=thirdparty%2Fopenldap.git ITS#8800 remove originator check in syncprov_search_response Let the entryCSN check do all the work. Reloading a server from an old backup needs this to go thru. --- diff --git a/servers/slapd/overlays/syncprov.c b/servers/slapd/overlays/syncprov.c index 418ac821c9..e4d363d36b 100644 --- a/servers/slapd/overlays/syncprov.c +++ b/servers/slapd/overlays/syncprov.c @@ -2376,14 +2376,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 */