Diff for /servers/slapd/overlays/syncprov.c between versions 1.118 and 1.119

version 1.118, 2005/10/13 09:58:46 version 1.119, 2005/10/14 22:31:22
Line 1 Line 1
 /* $OpenLDAP: pkg/ldap/servers/slapd/overlays/syncprov.c,v 1.117 2005/10/12 21:17:30 kurt Exp $ */  /* $OpenLDAP: pkg/ldap/servers/slapd/overlays/syncprov.c,v 1.118 2005/10/13 09:58:46 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 122  typedef struct syncprov_info_t { Line 122  typedef struct syncprov_info_t {
         int             si_chktime;          int             si_chktime;
         int             si_numops;      /* number of ops since last checkpoint */          int             si_numops;      /* number of ops since last checkpoint */
         int             si_nopres;      /* Skip present phase */          int             si_nopres;      /* Skip present phase */
           int             si_usehint;     /* use reload hint */
         time_t  si_chklast;     /* time of last checkpoint */          time_t  si_chklast;     /* time of last checkpoint */
         Avlnode *si_mods;       /* entries being modified */          Avlnode *si_mods;       /* entries being modified */
         sessionlog      *si_logs;          sessionlog      *si_logs;
Line 1943  syncprov_op_search( Operation *op, SlapR Line 1944  syncprov_op_search( Operation *op, SlapR
                 /* Is the CSN still present in the database? */                  /* Is the CSN still present in the database? */
                 if ( syncprov_findcsn( op, FIND_CSN ) != LDAP_SUCCESS ) {                  if ( syncprov_findcsn( op, FIND_CSN ) != LDAP_SUCCESS ) {
                         /* No, so a reload is required */                          /* No, so a reload is required */
 #if 0           /* the consumer doesn't seem to send this hint */                          /* the 2.2 consumer doesn't send this hint */
                         if ( op->o_sync_rhint == 0 ) {                          if ( si->si_usehint && srs->sr_rhint == 0 ) {
                                 send_ldap_error( op, rs, LDAP_SYNC_REFRESH_REQUIRED, "sync cookie is stale" );                                  send_ldap_error( op, rs, LDAP_SYNC_REFRESH_REQUIRED, "sync cookie is stale" );
                                 return rs->sr_err;                                  return rs->sr_err;
                         }                          }
 #endif  
                 } else {                  } else {
                         gotstate = 1;                          gotstate = 1;
                         /* If changed and doing Present lookup, send Present UUIDs */                          /* If changed and doing Present lookup, send Present UUIDs */
Line 2069  syncprov_operational( Line 2069  syncprov_operational(
 enum {  enum {
         SP_CHKPT = 1,          SP_CHKPT = 1,
         SP_SESSL,          SP_SESSL,
         SP_NOPRES          SP_NOPRES,
           SP_USEHINT
 };  };
   
 static ConfigDriver sp_cf_gen;  static ConfigDriver sp_cf_gen;
Line 2087  static ConfigTable spcfg[] = { Line 2088  static ConfigTable spcfg[] = {
                 sp_cf_gen, "( OLcfgOvAt:1.3 NAME 'olcSpNoPresent' "                  sp_cf_gen, "( OLcfgOvAt:1.3 NAME 'olcSpNoPresent' "
                         "DESC 'Omit Present phase processing' "                          "DESC 'Omit Present phase processing' "
                         "SYNTAX OMsBoolean SINGLE-VALUE )", NULL, NULL },                          "SYNTAX OMsBoolean SINGLE-VALUE )", NULL, NULL },
           { "syncprov-reloadhint", NULL, 2, 2, 0, ARG_ON_OFF|ARG_MAGIC|SP_USEHINT,
                   sp_cf_gen, "( OLcfgOvAt:1.4 NAME 'olcSpReloadHint' "
                           "DESC 'Observe Reload Hint in Request control' "
                           "SYNTAX OMsBoolean SINGLE-VALUE )", NULL, NULL },
         { NULL, NULL, 0, 0, 0, ARG_IGNORED }          { NULL, NULL, 0, 0, 0, ARG_IGNORED }
 };  };
   

Removed from v.1.118  
changed lines
  Added in v.1.119


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