]> git.sur5r.net Git - openldap/commitdiff
Mroe abandon checks for ITS#3671
authorHoward Chu <hyc@openldap.org>
Thu, 28 Apr 2005 16:45:52 +0000 (16:45 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 28 Apr 2005 16:45:52 +0000 (16:45 +0000)
servers/slapd/overlays/syncprov.c

index 6d7ca76f437f68e4ac18fad8651735732765b278..9b5fba66a08814fa8551c11aebe64658ce56a0b6 100644 (file)
@@ -708,7 +708,6 @@ syncprov_qplay( Operation *op, slap_overinst *on, syncops *so )
        opc.son = on;
        op->o_bd->bd_info = (BackendInfo *)on->on_info;
        for (sr = so->s_res; sr; sr=srnext) {
-               int rc;
                srnext = sr->s_next;
                opc.sdn = sr->s_dn;
                opc.sndn = sr->s_ndn;
@@ -757,6 +756,9 @@ syncprov_sendresp( Operation *op, opcookie *opc, syncops *so, Entry **e, int mod
        Operation sop = *so->s_op;
        Opheader ohdr;
 
+       if ( so->s_op->o_abandon )
+               return SLAPD_ABANDON;
+
        ohdr = *sop.o_hdr;
        sop.o_hdr = &ohdr;
        sop.o_tmpmemctx = op->o_tmpmemctx;