Diff for /servers/slapd/overlays/syncprov.c between versions 1.295 and 1.296

version 1.295, 2009/11/14 08:35:23 version 1.296, 2009/11/14 20:53:06
Line 1 Line 1
 /* $OpenLDAP: pkg/ldap/servers/slapd/overlays/syncprov.c,v 1.294 2009/11/14 08:34:29 hyc Exp $ */  /* $OpenLDAP: pkg/ldap/servers/slapd/overlays/syncprov.c,v 1.295 2009/11/14 08:35:23 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 1369  syncprov_checkpoint( Operation *op, Slap Line 1369  syncprov_checkpoint( Operation *op, Slap
         SlapReply rsm = { 0 };          SlapReply rsm = { 0 };
         slap_callback cb = {0};          slap_callback cb = {0};
         BackendDB be;          BackendDB be;
         struct berval ctxdn;  
   
 #ifdef CHECK_CSN  #ifdef CHECK_CSN
         Syntax *syn = slap_schema.si_ad_contextCSN->ad_type->sat_syntax;          Syntax *syn = slap_schema.si_ad_contextCSN->ad_type->sat_syntax;
Line 1396  syncprov_checkpoint( Operation *op, Slap Line 1395  syncprov_checkpoint( Operation *op, Slap
         if ( SLAP_GLUE_SUBORDINATE( op->o_bd )) {          if ( SLAP_GLUE_SUBORDINATE( op->o_bd )) {
                 be = *on->on_info->oi_origdb;                  be = *on->on_info->oi_origdb;
                 opm.o_bd = &be;                  opm.o_bd = &be;
                 ctxdn = be.be_nsuffix[0];  
         } else {  
                 ctxdn = si->si_contextdn;  
         }          }
         opm.o_req_dn = ctxdn;          opm.o_req_dn = si->si_contextdn;
         opm.o_req_ndn = ctxdn;          opm.o_req_ndn = si->si_contextdn;
         opm.o_bd->bd_info = on->on_info->oi_orig;          opm.o_bd->bd_info = on->on_info->oi_orig;
         opm.o_managedsait = SLAP_CONTROL_NONCRITICAL;          opm.o_managedsait = SLAP_CONTROL_NONCRITICAL;
         opm.o_no_schema_check = 1;          opm.o_no_schema_check = 1;

Removed from v.1.295  
changed lines
  Added in v.1.296


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