Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Robert Dubner
OpenLDAP
Commits
84db7cb2
Commit
84db7cb2
authored
Jan 21, 2021
by
Ondřej Kuzník
Committed by
Quanah Gibson-Mount
Jan 28, 2021
Browse files
ITS#7766 Include all relevant attributes in diff
parent
61f61904
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/syncrepl.c
View file @
84db7cb2
...
...
@@ -5358,6 +5358,33 @@ void syncrepl_diff_entry( Operation *op, Attribute *old, Attribute *new,
new
=
new
->
a_next
;
old
=
old
->
a_next
;
}
/* These are all missing from provider */
while
(
old
)
{
Modifications
*
mod
=
ch_malloc
(
sizeof
(
Modifications
)
);
mod
=
ch_malloc
(
sizeof
(
Modifications
)
);
mod
->
sml_op
=
LDAP_MOD_DELETE
;
mod
->
sml_flags
=
0
;
mod
->
sml_desc
=
old
->
a_desc
;
mod
->
sml_type
=
mod
->
sml_desc
->
ad_cname
;
mod
->
sml_numvals
=
0
;
mod
->
sml_values
=
NULL
;
mod
->
sml_nvalues
=
NULL
;
*
modtail
=
mod
;
modtail
=
&
mod
->
sml_next
;
old
=
old
->
a_next
;
}
/* Newly added attributes */
while
(
new
)
{
attr_cmp
(
op
,
NULL
,
new
,
&
modtail
,
&
ml
);
new
=
new
->
a_next
;
}
*
modtail
=
*
ml
;
*
ml
=
NULL
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment