Diff for /servers/slapd/overlays/syncprov.c between versions 1.56.2.12 and 1.56.2.14

version 1.56.2.12, 2005/08/25 05:01:19 version 1.56.2.14, 2005/08/29 18:26:11
Line 1 Line 1
 /* $OpenLDAP: pkg/ldap/servers/slapd/overlays/syncprov.c,v 1.100 2005/08/23 02:12:57 hyc Exp $ */  /* $OpenLDAP: pkg/ldap/servers/slapd/overlays/syncprov.c,v 1.102 2005/08/26 19:42:48 hallvard 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 142  typedef struct fbase_cookie { Line 142  typedef struct fbase_cookie {
         int fscope;     /* if TRUE then fdn is within the psearch scope */          int fscope;     /* if TRUE then fdn is within the psearch scope */
 } fbase_cookie;  } fbase_cookie;
   
 static AttributeName csn_anlist[2];  static AttributeName csn_anlist[3];
 static AttributeName uuid_anlist[2];  static AttributeName uuid_anlist[2];
   
 /* Build a LDAPsync intermediate state control */  /* Build a LDAPsync intermediate state control */
Line 178  syncprov_state_ctrl( Line 178  syncprov_state_ctrl(
                 }                  }
         }          }
   
           /* FIXME: what if entryuuid is NULL or empty ? */
   
         if ( send_cookie && cookie ) {          if ( send_cookie && cookie ) {
                 ber_printf( ber, "{eOON}",                  ber_printf( ber, "{eOON}",
                         entry_sync_state, &entryuuid_bv, cookie );                          entry_sync_state, &entryuuid_bv, cookie );
Line 2220  syncprov_db_close( Line 2222  syncprov_db_close(
 {  {
     slap_overinst   *on = (slap_overinst *) be->bd_info;      slap_overinst   *on = (slap_overinst *) be->bd_info;
     syncprov_info_t *si = (syncprov_info_t *)on->on_bi.bi_private;      syncprov_info_t *si = (syncprov_info_t *)on->on_bi.bi_private;
         int i;  
   
         if ( slapMode & SLAP_TOOL_MODE ) {          if ( slapMode & SLAP_TOOL_MODE ) {
                 return 0;                  return 0;
Line 2261  syncprov_db_init( Line 2262  syncprov_db_init(
   
         csn_anlist[0].an_desc = slap_schema.si_ad_entryCSN;          csn_anlist[0].an_desc = slap_schema.si_ad_entryCSN;
         csn_anlist[0].an_name = slap_schema.si_ad_entryCSN->ad_cname;          csn_anlist[0].an_name = slap_schema.si_ad_entryCSN->ad_cname;
           csn_anlist[1].an_desc = slap_schema.si_ad_entryUUID;
           csn_anlist[1].an_name = slap_schema.si_ad_entryUUID->ad_cname;
   
         uuid_anlist[0].an_desc = slap_schema.si_ad_entryUUID;          uuid_anlist[0].an_desc = slap_schema.si_ad_entryUUID;
         uuid_anlist[0].an_name = slap_schema.si_ad_entryUUID->ad_cname;          uuid_anlist[0].an_name = slap_schema.si_ad_entryUUID->ad_cname;

Removed from v.1.56.2.12  
changed lines
  Added in v.1.56.2.14


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