Diff for /servers/slapd/overlays/syncprov.c between versions 1.12 and 1.13

version 1.12, 2004/11/25 20:16:56 version 1.13, 2004/11/25 21:59:01
Line 19 Line 19
   
 #include "portable.h"  #include "portable.h"
   
 #define SLAPD_OVER_SYNCPROV     SLAPD_MOD_DYNAMIC  
   
 #ifdef SLAPD_OVER_SYNCPROV  #ifdef SLAPD_OVER_SYNCPROV
   
 #include <ac/string.h>  #include <ac/string.h>
Line 394  syncprov_sendresp( Operation *op, opcook Line 392  syncprov_sendresp( Operation *op, opcook
         Entry e_uuid = {0};          Entry e_uuid = {0};
         Attribute a_uuid = {0};          Attribute a_uuid = {0};
         Operation sop = *so->s_op;          Operation sop = *so->s_op;
           Opheader ohdr;
         syncrepl_state *srs = sop.o_controls[sync_cid];          syncrepl_state *srs = sop.o_controls[sync_cid];
   
           ohdr = *sop.o_hdr;
           sop.o_hdr = &ohdr;
         sop.o_tmpmemctx = op->o_tmpmemctx;          sop.o_tmpmemctx = op->o_tmpmemctx;
   
         ctrls[1] = NULL;          ctrls[1] = NULL;
Line 789  syncprov_op_search( Operation *op, SlapR Line 790  syncprov_op_search( Operation *op, SlapR
         Filter *fand, *fava;          Filter *fand, *fava;
         syncops *sop = NULL;          syncops *sop = NULL;
         searchstate *ss;          searchstate *ss;
         syncrepl_state *srs = op->o_controls[sync_cid];          syncrepl_state *srs;
   
         if ( !(op->o_sync_mode & SLAP_SYNC_REFRESH) ) return SLAP_CB_CONTINUE;          if ( !(op->o_sync_mode & SLAP_SYNC_REFRESH) ) return SLAP_CB_CONTINUE;
   
Line 798  syncprov_op_search( Operation *op, SlapR Line 799  syncprov_op_search( Operation *op, SlapR
                 return rs->sr_err;                  return rs->sr_err;
         }          }
   
           srs = op->o_controls[sync_cid];
   
         /* If this is a persistent search, set it up right away */          /* If this is a persistent search, set it up right away */
         if ( op->o_sync_mode & SLAP_SYNC_PERSIST ) {          if ( op->o_sync_mode & SLAP_SYNC_PERSIST ) {
                 syncops so;                  syncops so;

Removed from v.1.12  
changed lines
  Added in v.1.13


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