Commit 04c9bb22 authored by Ondřej Kuzník's avatar Ondřej Kuzník
Browse files

ITS#XXXX Don't assume entryCSN exists in the target entry

parent 72bfa9d4
Pipeline #954 passed with stage
in 28 minutes and 26 seconds
......@@ -2629,7 +2629,7 @@ syncrepl_op_modify( Operation *op, SlapReply *rs )
OpExtra *oex;
syncinfo_t *si;
Entry *e;
int rc, match = 0;
int rc, match = 1; /* assume mod is newer */
Modifications *mod, *newlist;
LDAP_SLIST_FOREACH( oex, &op->o_extra, oe_next ) {
......@@ -2673,10 +2673,12 @@ syncrepl_op_modify( Operation *op, SlapReply *rs )
Attribute *a;
const char *text;
a = attr_find( e->e_attrs, slap_schema.si_ad_entryCSN );
value_match( &match, slap_schema.si_ad_entryCSN,
slap_schema.si_ad_entryCSN->ad_type->sat_ordering,
SLAP_MR_VALUE_OF_ATTRIBUTE_SYNTAX,
&mod->sml_nvalues[0], &a->a_nvals[0], &text );
if ( a ) {
value_match( &match, slap_schema.si_ad_entryCSN,
slap_schema.si_ad_entryCSN->ad_type->sat_ordering,
SLAP_MR_VALUE_OF_ATTRIBUTE_SYNTAX,
&mod->sml_nvalues[0], &a->a_nvals[0], &text );
}
overlay_entry_release_ov( op, e, 0, on );
}
/* equal? Should never happen */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment