Diff for /servers/slapd/overlays/syncprov.c between versions 1.236 and 1.237

version 1.236, 2008/05/13 19:57:19 version 1.237, 2008/05/28 00:45:18
Line 1 Line 1
 /* $OpenLDAP: pkg/ldap/servers/slapd/overlays/syncprov.c,v 1.235 2008/05/12 16:33:05 hyc Exp $ */  /* $OpenLDAP: pkg/ldap/servers/slapd/overlays/syncprov.c,v 1.236 2008/05/13 19:57:19 hyc 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.236  
changed lines
  Added in v.1.237


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