From d57ad4f3c0ac19def5a08145271d0b333139dc73 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Mon, 5 Feb 2007 07:36:07 +0000 Subject: [PATCH] More for contextCSN checks --- servers/slapd/syncrepl.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/servers/slapd/syncrepl.c b/servers/slapd/syncrepl.c index dd323ff6af..f3505c5b1f 100644 --- a/servers/slapd/syncrepl.c +++ b/servers/slapd/syncrepl.c @@ -2661,7 +2661,10 @@ dn_callback( if ( dni->new_entry ) { Modifications **modtail, **ml; Attribute *old, *new; - int i; + int i, is_ctx; + + is_ctx = dn_match( &rs->sr_entry->e_nname, + &op->o_bd->be_nsuffix[0] ); /* Did the DN change? */ @@ -2720,6 +2723,13 @@ dn_callback( new = new->a_next; continue; } + /* Skip contextCSN */ + if ( is_ctx && old->a_desc == + slap_schema.si_ad_contextCSN ) { + old = old->a_next; + continue; + } + if ( old->a_desc != new->a_desc ) { Modifications *mod; Attribute *tmp; -- 2.39.5