mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-06-08 16:22:09 -04:00
ITS#10250 syncrepl: contextCSN can now be the last attribute in the list
This commit is contained in:
parent
8409c54964
commit
ae924d51c3
1 changed files with 8 additions and 1 deletions
|
|
@ -5992,8 +5992,15 @@ void syncrepl_diff_entry( Operation *op, Attribute *old, Attribute *new,
|
|||
|
||||
/* These are all missing from provider */
|
||||
while ( old ) {
|
||||
Modifications *mod = ch_malloc( sizeof( Modifications ) );
|
||||
Modifications *mod;
|
||||
|
||||
/* Skip contextCSN we screen ourselves */
|
||||
if ( is_ctx && old->a_desc == slap_schema.si_ad_contextCSN ) {
|
||||
old = old->a_next;
|
||||
continue;
|
||||
}
|
||||
|
||||
mod = ch_malloc( sizeof( Modifications ) );
|
||||
mod->sml_op = LDAP_MOD_DELETE;
|
||||
mod->sml_flags = 0;
|
||||
mod->sml_desc = old->a_desc;
|
||||
|
|
|
|||
Loading…
Reference in a new issue