Diff for /servers/slapd/overlays/syncprov.c between versions 1.147.2.25 and 1.147.2.26

version 1.147.2.25, 2008/05/20 00:03:28 version 1.147.2.26, 2008/05/28 16:32:24
Line 1 Line 1
 /* $OpenLDAP: pkg/ldap/servers/slapd/overlays/syncprov.c,v 1.147.2.24 2008/05/20 00:00:56 quanah Exp $ */  /* $OpenLDAP: pkg/ldap/servers/slapd/overlays/syncprov.c,v 1.147.2.25 2008/05/20 00:03:28 quanah Exp $ */
 /* syncprov.c - syncrepl provider */  /* syncprov.c - syncrepl provider */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.  /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *   *
Line 404  syncprov_findbase( Operation *op, fbase_ Line 404  syncprov_findbase( Operation *op, fbase_
                 slap_callback cb = {0};                  slap_callback cb = {0};
                 Operation fop;                  Operation fop;
                 SlapReply frs = { REP_RESULT };                  SlapReply frs = { REP_RESULT };
                 BackendInfo *bi;  
                 int rc;                  int rc;
   
                 fc->fss->s_flags ^= PS_FIND_BASE;                  fc->fss->s_flags ^= PS_FIND_BASE;
Line 412  syncprov_findbase( Operation *op, fbase_ Line 411  syncprov_findbase( Operation *op, fbase_
   
                 fop = *fc->fss->s_op;                  fop = *fc->fss->s_op;
   
                   fop.o_bd = fop.o_bd->bd_self;
                 fop.o_hdr = op->o_hdr;                  fop.o_hdr = op->o_hdr;
                 fop.o_bd = op->o_bd;  
                 fop.o_time = op->o_time;                  fop.o_time = op->o_time;
                 fop.o_tincr = op->o_tincr;                  fop.o_tincr = op->o_tincr;
                 bi = op->o_bd->bd_info;  
   
                 cb.sc_response = findbase_cb;                  cb.sc_response = findbase_cb;
                 cb.sc_private = fc;                  cb.sc_private = fc;
Line 434  syncprov_findbase( Operation *op, fbase_ Line 432  syncprov_findbase( Operation *op, fbase_
                 fop.ors_filter = &generic_filter;                  fop.ors_filter = &generic_filter;
                 fop.ors_filterstr = generic_filterstr;                  fop.ors_filterstr = generic_filterstr;
   
                 rc = overlay_op_walk( &fop, &frs, op_search, on->on_info, on );                  rc = fop.o_bd->be_search( &fop, &frs );
                 op->o_bd->bd_info = bi;  
         } else {          } else {
                 ldap_pvt_thread_mutex_unlock( &fc->fss->s_mutex );                  ldap_pvt_thread_mutex_unlock( &fc->fss->s_mutex );
                 fc->fbase = 1;                  fc->fbase = 1;

Removed from v.1.147.2.25  
changed lines
  Added in v.1.147.2.26


______________
© Copyright 1998-2020, OpenLDAP Foundation, info@OpenLDAP.org