Diff for /servers/slapd/overlays/syncprov.c between versions 1.85 and 1.86

version 1.85, 2005/06/04 07:44:39 version 1.86, 2005/06/30 01:42:51
Line 1 Line 1
 /* $OpenLDAP: pkg/ldap/servers/slapd/overlays/syncprov.c,v 1.84 2005/05/09 08:33:01 hyc Exp $ */  /* $OpenLDAP: pkg/ldap/servers/slapd/overlays/syncprov.c,v 1.85 2005/06/04 07:44:39 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 2166  syncprov_db_open( Line 2166  syncprov_db_open(
                         strcpy( ctxcsnbuf, si->si_ctxcsnbuf );                          strcpy( ctxcsnbuf, si->si_ctxcsnbuf );
                 }                  }
                 be_entry_release_rw( op, e, 0 );                  be_entry_release_rw( op, e, 0 );
   #if 0   /* ITS#3456, can't check this here. I think we're fine without it. */
                 op->o_bd->bd_info = (BackendInfo *)on;                  op->o_bd->bd_info = (BackendInfo *)on;
                 op->o_req_dn = be->be_suffix[0];                  op->o_req_dn = be->be_suffix[0];
                 op->o_req_ndn = be->be_nsuffix[0];                  op->o_req_ndn = be->be_nsuffix[0];
                 op->ors_scope = LDAP_SCOPE_SUBTREE;                  op->ors_scope = LDAP_SCOPE_SUBTREE;
                 syncprov_findcsn( op, FIND_MAXCSN );                  syncprov_findcsn( op, FIND_MAXCSN );
   #endif
         } else if ( SLAP_SYNC_SHADOW( op->o_bd )) {          } else if ( SLAP_SYNC_SHADOW( op->o_bd )) {
                 /* If we're also a consumer, and we didn't find the context entry,                  /* If we're also a consumer, and we didn't find the context entry,
                  * then don't generate anything, wait for our provider to send it                   * then don't generate anything, wait for our provider to send it
Line 2185  syncprov_db_open( Line 2187  syncprov_db_open(
         }          }
   
         /* If our ctxcsn is different from what was read from the root          /* If our ctxcsn is different from what was read from the root
          * entry, write the new value out.           * entry, make sure we do a checkpoint on close
          */           */
         if ( strcmp( si->si_ctxcsnbuf, ctxcsnbuf )) {          if ( strcmp( si->si_ctxcsnbuf, ctxcsnbuf )) {
                 SlapReply rs = {REP_RESULT};                  si->si_numops++;
                 syncprov_checkpoint( op, &rs, on );  
         }          }
   
 out:  out:

Removed from v.1.85  
changed lines
  Added in v.1.86


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