mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-07 23:51:21 -05:00
fix syncrepl when attr has no matching rule (ITS#6458)
This commit is contained in:
parent
a94b978e9d
commit
8025becf91
1 changed files with 4 additions and 2 deletions
|
|
@ -3286,10 +3286,12 @@ attr_cmp( Operation *op, Attribute *old, Attribute *new,
|
|||
* Also use replace op if attr has no equality matching rule.
|
||||
* (ITS#5781)
|
||||
*/
|
||||
if ( nn && no < o &&
|
||||
if ( ( nn || ( no > 0 && no < o ) ) &&
|
||||
( old->a_desc == slap_schema.si_ad_objectClass ||
|
||||
!old->a_desc->ad_type->sat_equality ))
|
||||
!old->a_desc->ad_type->sat_equality ) )
|
||||
{
|
||||
no = o;
|
||||
}
|
||||
|
||||
i = j;
|
||||
/* all old values were deleted, just use the replace op */
|
||||
|
|
|
|||
Loading…
Reference in a new issue