]> git.sur5r.net Git - openldap/commitdiff
ITS#5434 again
authorHoward Chu <hyc@openldap.org>
Tue, 25 Mar 2008 05:08:21 +0000 (05:08 +0000)
committerHoward Chu <hyc@openldap.org>
Tue, 25 Mar 2008 05:08:21 +0000 (05:08 +0000)
servers/slapd/overlays/syncprov.c

index 74d841b8bf33d67ed67a4ac70ea9e0d2650628d1..66c870325b0af7ae0ae7cdd93bb7b57bdf588e0c 100644 (file)
@@ -696,10 +696,7 @@ again:
                break;
        }
 
-       if ( on->on_next )
-               fop.o_bd->bd_info = (BackendInfo *)on->on_next;
-       else
-               fop.o_bd->bd_info = on->on_info->oi_orig;
+       fop.o_bd->bd_info = (BackendInfo *)on->on_info;
        fop.o_bd->be_search( &fop, &frs );
        fop.o_bd->bd_info = (BackendInfo *)on;
 
@@ -1531,10 +1528,7 @@ syncprov_playlog( Operation *op, SlapReply *rs, sessionlog *sl,
                fop.ors_filter = &af;
 
                cb.sc_response = playlog_cb;
-               if ( on->on_next )
-                       fop.o_bd->bd_info = (BackendInfo *)on->on_next;
-               else
-                       fop.o_bd->bd_info = on->on_info->oi_orig;
+               fop.o_bd->bd_info = (BackendInfo *)on->on_info;
 
                for ( i=ndel; i<num; i++ ) {
                        if ( uuids[i].bv_len == 0 ) continue;