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
Tero Saarni
OpenLDAP
Commits
8d514517
Commit
8d514517
authored
Sep 13, 2021
by
Ondřej Kuzník
Committed by
Quanah Gibson-Mount
Dec 09, 2021
Browse files
ITS#9647 Record delete's CSN in the glue entry
parent
5357c9ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/syncrepl.c
View file @
8d514517
...
...
@@ -4735,7 +4735,9 @@ syncrepl_del_nonpresent(
if
(
rs_delete
.
sr_err
==
LDAP_NOT_ALLOWED_ON_NONLEAF
)
{
SlapReply
rs_modify
=
{
REP_RESULT
};
Modifications
mod1
,
mod2
;
Modifications
mod1
,
mod2
,
mod3
;
struct
berval
vals
[
2
]
=
{
csn
,
BER_BVNULL
};
mod1
.
sml_op
=
LDAP_MOD_REPLACE
;
mod1
.
sml_flags
=
0
;
mod1
.
sml_desc
=
slap_schema
.
si_ad_objectClass
;
...
...
@@ -4752,13 +4754,22 @@ syncrepl_del_nonpresent(
mod2
.
sml_numvals
=
1
;
mod2
.
sml_values
=
&
gcbva
[
1
];
mod2
.
sml_nvalues
=
NULL
;
mod2
.
sml_next
=
NULL
;
mod2
.
sml_next
=
&
mod3
;
mod3
.
sml_op
=
LDAP_MOD_REPLACE
;
mod3
.
sml_flags
=
0
;
mod3
.
sml_desc
=
slap_schema
.
si_ad_entryCSN
;
mod3
.
sml_type
=
mod3
.
sml_desc
->
ad_cname
;
mod3
.
sml_numvals
=
1
;
mod3
.
sml_values
=
vals
;
mod3
.
sml_nvalues
=
NULL
;
mod3
.
sml_next
=
NULL
;
op
->
o_tag
=
LDAP_REQ_MODIFY
;
op
->
orm_modlist
=
&
mod1
;
rc
=
op
->
o_bd
->
be_modify
(
op
,
&
rs_modify
);
if
(
mod
2
.
sml_next
)
slap_mods_free
(
mod
2
.
sml_next
,
1
);
if
(
mod
3
.
sml_next
)
slap_mods_free
(
mod
3
.
sml_next
,
1
);
}
while
(
rs_delete
.
sr_err
==
LDAP_SUCCESS
&&
...
...
Write
Preview
Supports
Markdown
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