version 1.56.2.31, 2006/05/11 17:04:27
|
version 1.56.2.32, 2006/05/15 15:51:59
|
Line 1
|
Line 1
|
/* $OpenLDAP: pkg/ldap/servers/slapd/overlays/syncprov.c,v 1.56.2.30 2006/05/09 17:29:13 kurt Exp $ */ |
/* $OpenLDAP: pkg/ldap/servers/slapd/overlays/syncprov.c,v 1.150 2006/05/11 08:46:44 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 1822 syncprov_search_response( Operation *op,
|
Line 1822 syncprov_search_response( Operation *op,
|
} |
} |
if ( a ) { |
if ( a ) { |
/* Make sure entry is less than the snapshot'd contextCSN */ |
/* Make sure entry is less than the snapshot'd contextCSN */ |
if ( ber_bvcmp( &a->a_nvals[0], &ss->ss_ctxcsn ) > 0 ) |
if ( ber_bvcmp( &a->a_nvals[0], &ss->ss_ctxcsn ) > 0 ) { |
|
Debug( LDAP_DEBUG_SYNC, "Entry %s CSN %s greater than snapshot %s\n", |
|
rs->sr_entry->e_name.bv_val, |
|
a->a_nvals[0].bv_val, |
|
ss->ss_ctxcsn.bv_val ); |
return LDAP_SUCCESS; |
return LDAP_SUCCESS; |
|
} |
|
|
/* Don't send the ctx entry twice */ |
/* Don't send the ctx entry twice */ |
if ( !BER_BVISNULL( &srs->sr_state.ctxcsn ) && |
if ( !BER_BVISNULL( &srs->sr_state.ctxcsn ) && |
bvmatch( &a->a_nvals[0], &srs->sr_state.ctxcsn ) ) |
bvmatch( &a->a_nvals[0], &srs->sr_state.ctxcsn ) ) { |
|
Debug( LDAP_DEBUG_SYNC, "Entry %s CSN %s matches ctx %s\n", |
|
rs->sr_entry->e_name.bv_val, |
|
a->a_nvals[0].bv_val, |
|
srs->sr_state.ctxcsn.bv_val ); |
return LDAP_SUCCESS; |
return LDAP_SUCCESS; |
|
} |
} |
} |
rs->sr_ctrls = op->o_tmpalloc( sizeof(LDAPControl *)*2, |
rs->sr_ctrls = op->o_tmpalloc( sizeof(LDAPControl *)*2, |
op->o_tmpmemctx ); |
op->o_tmpmemctx ); |