From: Quanah Gibson-Mount Date: Fri, 20 Nov 2009 07:05:37 +0000 (+0000) Subject: ITS#6368 partially revert 1.273, always check for skips, not just on X-Git-Tag: OPENLDAP_REL_ENG_2_4_20~29 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=376a29273306420e8b035046e6acbb76f3485db8;p=openldap ITS#6368 partially revert 1.273, always check for skips, not just on first matchops call --- diff --git a/servers/slapd/overlays/syncprov.c b/servers/slapd/overlays/syncprov.c index 15395c3043..5f626c95db 100644 --- a/servers/slapd/overlays/syncprov.c +++ b/servers/slapd/overlays/syncprov.c @@ -1198,22 +1198,18 @@ syncprov_matchops( Operation *op, opcookie *opc, int saveit ) if ( ss->s_op->o_abandon ) continue; - /* First time thru, check for possible skips */ - if ( saveit || op->o_tag == LDAP_REQ_ADD ) { - - /* Don't send ops back to the originator */ - if ( opc->osid > 0 && opc->osid == ss->s_sid ) { - Debug( LDAP_DEBUG_SYNC, "syncprov_matchops: skipping original sid %03x\n", - opc->osid, 0, 0 ); - continue; - } + /* Don't send ops back to the originator */ + if ( opc->osid > 0 && opc->osid == ss->s_sid ) { + Debug( LDAP_DEBUG_SYNC, "syncprov_matchops: skipping original sid %03x\n", + opc->osid, 0, 0 ); + continue; + } - /* Don't send ops back to the messenger */ - if ( opc->rsid > 0 && opc->rsid == ss->s_sid ) { - Debug( LDAP_DEBUG_SYNC, "syncprov_matchops: skipping relayed sid %03x\n", - opc->rsid, 0, 0 ); - continue; - } + /* Don't send ops back to the messenger */ + if ( opc->rsid > 0 && opc->rsid == ss->s_sid ) { + Debug( LDAP_DEBUG_SYNC, "syncprov_matchops: skipping relayed sid %03x\n", + opc->rsid, 0, 0 ); + continue; } /* validate base */