version 1.116, 2005/10/06 22:31:38
|
version 1.117, 2005/10/12 21:17:30
|
Line 1
|
Line 1
|
/* $OpenLDAP: pkg/ldap/servers/slapd/overlays/syncprov.c,v 1.115 2005/10/06 16:45:53 hyc Exp $ */ |
/* $OpenLDAP: pkg/ldap/servers/slapd/overlays/syncprov.c,v 1.116 2005/10/06 22:31:38 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 861 syncprov_qtask( void *ctx, void *arg )
|
Line 861 syncprov_qtask( void *ctx, void *arg )
|
struct re_s *rtask = arg; |
struct re_s *rtask = arg; |
syncops *so = rtask->arg; |
syncops *so = rtask->arg; |
slap_overinst *on = so->s_op->o_private; |
slap_overinst *on = so->s_op->o_private; |
char opbuf[OPERATION_BUFFER_SIZE]; |
OperationBuffer opbuf; |
Operation *op; |
Operation *op; |
BackendDB be; |
BackendDB be; |
|
|
op = (Operation *)opbuf; |
op = (Operation *) &opbuf; |
*op = *so->s_op; |
*op = *so->s_op; |
op->o_hdr = (Opheader *)(op+1); |
op->o_hdr = (Opheader *)(op+1); |
op->o_controls = (void **)(op->o_hdr+1); |
op->o_controls = (void **)(op->o_hdr+1); |
Line 2217 syncprov_db_open(
|
Line 2217 syncprov_db_open(
|
syncprov_info_t *si = (syncprov_info_t *)on->on_bi.bi_private; |
syncprov_info_t *si = (syncprov_info_t *)on->on_bi.bi_private; |
|
|
Connection conn; |
Connection conn; |
char opbuf[OPERATION_BUFFER_SIZE]; |
OperationBuffer opbuf; |
char ctxcsnbuf[LDAP_LUTIL_CSNSTR_BUFSIZE]; |
char ctxcsnbuf[LDAP_LUTIL_CSNSTR_BUFSIZE]; |
Operation *op = (Operation *)opbuf; |
Operation *op = (Operation *) &opbuf; |
Entry *e; |
Entry *e; |
Attribute *a; |
Attribute *a; |
int rc; |
int rc; |
Line 2307 syncprov_db_close(
|
Line 2307 syncprov_db_close(
|
} |
} |
if ( si->si_numops ) { |
if ( si->si_numops ) { |
Connection conn; |
Connection conn; |
char opbuf[OPERATION_BUFFER_SIZE]; |
OperationBuffer opbuf; |
Operation *op = (Operation *)opbuf; |
Operation *op = (Operation *) &opbuf; |
SlapReply rs = {REP_RESULT}; |
SlapReply rs = {REP_RESULT}; |
void *thrctx; |
void *thrctx; |
|
|