More for contextCSN checks

This commit is contained in:
Howard Chu 2007-02-05 07:36:07 +00:00
parent 36571123ca
commit d57ad4f3c0

View File

@ -2661,7 +2661,10 @@ dn_callback(
if ( dni->new_entry ) { if ( dni->new_entry ) {
Modifications **modtail, **ml; Modifications **modtail, **ml;
Attribute *old, *new; 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? /* Did the DN change?
*/ */
@ -2720,6 +2723,13 @@ dn_callback(
new = new->a_next; new = new->a_next;
continue; 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 ) { if ( old->a_desc != new->a_desc ) {
Modifications *mod; Modifications *mod;
Attribute *tmp; Attribute *tmp;