Diff for /servers/slapd/overlays/syncprov.c between versions 1.56.2.21 and 1.121

version 1.56.2.21, 2005/11/14 18:06:14 version 1.121, 2005/10/15 03:13:05
Line 1 Line 1
 /* $OpenLDAP: pkg/ldap/servers/slapd/overlays/syncprov.c,v 1.124 2005/11/07 23:40:20 ando Exp $ */  /* $OpenLDAP: pkg/ldap/servers/slapd/overlays/syncprov.c,v 1.120 2005/10/15 01:27:05 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 483  syncprov_findbase( Operation *op, fbase_ Line 483  syncprov_findbase( Operation *op, fbase_
  * CSN, and generate Present records for them. We always collect this result   * CSN, and generate Present records for them. We always collect this result
  * in SyncID sets, even if there's only one match.   * in SyncID sets, even if there's only one match.
  */   */
 typedef enum find_csn_t {  #define FIND_MAXCSN     1
         FIND_MAXCSN     = 1,  #define FIND_CSN        2
         FIND_CSN        = 2,  #define FIND_PRESENT    3
         FIND_PRESENT    = 3  
 } find_csn_t;  
   
 static int  static int
 findmax_cb( Operation *op, SlapReply *rs )  findmax_cb( Operation *op, SlapReply *rs )
Line 566  findpres_cb( Operation *op, SlapReply *r Line 564  findpres_cb( Operation *op, SlapReply *r
 }  }
   
 static int  static int
 syncprov_findcsn( Operation *op, find_csn_t mode )  syncprov_findcsn( Operation *op, int mode )
 {  {
         slap_overinst           *on = (slap_overinst *)op->o_bd->bd_info;          slap_overinst           *on = (slap_overinst *)op->o_bd->bd_info;
         syncprov_info_t         *si = on->on_bi.bi_private;          syncprov_info_t         *si = on->on_bi.bi_private;
Line 736  syncprov_free_syncop( syncops *so ) Line 734  syncprov_free_syncop( syncops *so )
   
 /* Send a persistent search response */  /* Send a persistent search response */
 static int  static int
 syncprov_sendresp( Operation *op, opcookie *opc, syncops *so,  syncprov_sendresp( Operation *op, opcookie *opc, syncops *so, Entry **e, int mode)
         Entry **e, int mode )  
 {  {
         slap_overinst *on = opc->son;          slap_overinst *on = opc->son;
   
Line 1224  syncprov_checkpoint( Operation *op, Slap Line 1221  syncprov_checkpoint( Operation *op, Slap
         Operation opm;          Operation opm;
         struct berval bv[2];          struct berval bv[2];
         slap_callback cb = {0};          slap_callback cb = {0};
           int manage = get_manageDSAit(op);
   
         mod.sml_values = bv;          mod.sml_values = bv;
         bv[1].bv_val = NULL;          bv[1].bv_val = NULL;
Line 1244  syncprov_checkpoint( Operation *op, Slap Line 1242  syncprov_checkpoint( Operation *op, Slap
         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_bd->be_modify( &opm, rs );          opm.o_bd->be_modify( &opm, rs );
         if ( mod.sml_next != NULL ) {          opm.o_managedsait = manage;
                 slap_mods_free( mod.sml_next, 1 );  
         }  
 }  }
   
 static void  static void

Removed from v.1.56.2.21  
changed lines
  Added in v.1.121


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