From: Rein Tollevik Date: Wed, 18 Jun 2008 19:38:39 +0000 (+0000) Subject: ITS#5564 ignore clients contextCSN when doing full reload. X-Git-Tag: LOCKER_IDS~98 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e5dfb18abca0addba18ef9747b30e0b1bcb72893;p=openldap ITS#5564 ignore clients contextCSN when doing full reload. --- diff --git a/servers/slapd/overlays/syncprov.c b/servers/slapd/overlays/syncprov.c index e6e2161e44..80fd2774c2 100644 --- a/servers/slapd/overlays/syncprov.c +++ b/servers/slapd/overlays/syncprov.c @@ -2323,6 +2323,15 @@ no_change: if ( !(op->o_sync_mode & SLAP_SYNC_PERSIST) ) { send_ldap_error( op, rs, LDAP_SYNC_REFRESH_REQUIRED, "sync cookie is stale" ); return rs->sr_err; } + if ( srs->sr_state.ctxcsn ) { + ber_bvarray_free_x( srs->sr_state.ctxcsn, op->o_tmpmemctx ); + srs->sr_state.ctxcsn = NULL; + } + if ( srs->sr_state.sids ) { + slap_sl_free( srs->sr_state.sids, op->o_tmpmemctx ); + srs->sr_state.sids = NULL; + } + srs->sr_state.numcsns = 0; } else { gotstate = 1; /* If changed and doing Present lookup, send Present UUIDs */