--- servers/slapd/overlays/syncprov.c 2009/11/15 09:38:13 1.297 +++ servers/slapd/overlays/syncprov.c 2009/11/19 10:17:53 1.298 @@ -1,4 +1,4 @@ -/* $OpenLDAP: pkg/ldap/servers/slapd/overlays/syncprov.c,v 1.296 2009/11/14 20:53:06 hyc Exp $ */ +/* $OpenLDAP: pkg/ldap/servers/slapd/overlays/syncprov.c,v 1.297 2009/11/15 09:38:13 hyc Exp $ */ /* syncprov.c - syncrepl provider */ /* This work is part of OpenLDAP Software . * @@ -1198,22 +1198,18 @@ syncprov_matchops( Operation *op, opcook 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 */