]> git.sur5r.net Git - openldap/commitdiff
More for contextCSN checks
authorHoward Chu <hyc@openldap.org>
Mon, 5 Feb 2007 07:36:07 +0000 (07:36 +0000)
committerHoward Chu <hyc@openldap.org>
Mon, 5 Feb 2007 07:36:07 +0000 (07:36 +0000)
servers/slapd/syncrepl.c

index dd323ff6af8df41e3e62f160c8543156863d4cf6..f3505c5b1fc6df5bbc2cf920d4bbb61b2cfb15f2 100644 (file)
@@ -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;