From: Quanah Gibson-Mount Date: Sat, 29 Jul 2006 00:35:50 +0000 (+0000) Subject: Additional ITS#4622 fixes: don't save contextCSN on incoming context entry X-Git-Tag: OPENLDAP_REL_ENG_2_3_25~18 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=35730e4db8a5d08efdc03fe9640bc49aa04cc032;p=openldap Additional ITS#4622 fixes: don't save contextCSN on incoming context entry --- diff --git a/servers/slapd/syncrepl.c b/servers/slapd/syncrepl.c index 9fcdc17112..901e65433c 100644 --- a/servers/slapd/syncrepl.c +++ b/servers/slapd/syncrepl.c @@ -1749,6 +1749,22 @@ syncrepl_entry( ber_memfree( a->a_vals[0].bv_val ); ber_dupbv( &a->a_vals[0], &syncUUID_strrep ); } + /* Don't save the contextCSN on the inooming context entry, + * we'll write it when syncrepl_updateCookie eventually + * gets called. (ITS#4622) + */ + if ( syncstate == LDAP_SYNC_ADD && dn_match( &entry->e_nname, + &be->be_nsuffix[0] )) { + Attribute **ap; + for ( ap = &entry->e_attrs; *ap; ap=&(*ap)->a_next ) { + a = *ap; + if ( a->a_desc == slap_schema.si_ad_contextCSN ) { + *ap = a->a_next; + attr_free( a ); + break; + } + } + } } slap_op_time( &op->o_time, &op->o_tincr );