From: Howard Chu Date: Mon, 5 Feb 2007 07:36:07 +0000 (+0000) Subject: More for contextCSN checks X-Git-Tag: OPENLDAP_REL_ENG_2_4_4ALPHA~8^2~83 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d57ad4f3c0ac19def5a08145271d0b333139dc73;p=openldap More for contextCSN checks --- 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;