Diff for /servers/slapd/overlays/syncprov.c between versions 1.56.2.47 and 1.56.2.48

version 1.56.2.47, 2008/02/11 23:24:25 version 1.56.2.48, 2008/05/09 19:04:16
Line 1 Line 1
 /* $OpenLDAP: pkg/ldap/servers/slapd/overlays/syncprov.c,v 1.56.2.46 2007/10/08 16:13:54 hyc Exp $ */  /* $OpenLDAP: pkg/ldap/servers/slapd/overlays/syncprov.c,v 1.56.2.47 2008/02/11 23:24:25 kurt 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 1856  syncprov_search_response( Operation *op, Line 1856  syncprov_search_response( Operation *op,
 {  {
         searchstate *ss = op->o_callback->sc_private;          searchstate *ss = op->o_callback->sc_private;
         slap_overinst *on = ss->ss_on;          slap_overinst *on = ss->ss_on;
           syncprov_info_t *si = (syncprov_info_t *)on->on_bi.bi_private;
         sync_control *srs = op->o_controls[slap_cids.sc_LDAPsync];          sync_control *srs = op->o_controls[slap_cids.sc_LDAPsync];
   
         if ( rs->sr_type == REP_SEARCH || rs->sr_type == REP_SEARCHREF ) {          if ( rs->sr_type == REP_SEARCH || rs->sr_type == REP_SEARCHREF ) {
Line 1898  syncprov_search_response( Operation *op, Line 1899  syncprov_search_response( Operation *op,
                 rs->sr_ctrls = op->o_tmpalloc( sizeof(LDAPControl *)*2,                  rs->sr_ctrls = op->o_tmpalloc( sizeof(LDAPControl *)*2,
                         op->o_tmpmemctx );                          op->o_tmpmemctx );
                 rs->sr_ctrls[1] = NULL;                  rs->sr_ctrls[1] = NULL;
                 rs->sr_err = syncprov_state_ctrl( op, rs, rs->sr_entry,                  /* If we're in delta-sync mode, always send a cookie */
                         LDAP_SYNC_ADD, rs->sr_ctrls, 0, 0, NULL );                  if ( si->si_nopres && si->si_usehint && a ) {
                           struct berval cookie;
                           slap_compose_sync_cookie( op, &cookie, a->a_nvals, srs->sr_state.rid );
                           rs->sr_err = syncprov_state_ctrl( op, rs, rs->sr_entry,
                                   LDAP_SYNC_ADD, rs->sr_ctrls, 0, 1, &cookie );
                   } else {
                           rs->sr_err = syncprov_state_ctrl( op, rs, rs->sr_entry,
                                   LDAP_SYNC_ADD, rs->sr_ctrls, 0, 0, NULL );
                   }
         } else if ( rs->sr_type == REP_RESULT && rs->sr_err == LDAP_SUCCESS ) {          } else if ( rs->sr_type == REP_RESULT && rs->sr_err == LDAP_SUCCESS ) {
                 struct berval cookie;                  struct berval cookie;
   

Removed from v.1.56.2.47  
changed lines
  Added in v.1.56.2.48


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