Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Joe Martin
OpenLDAP
Commits
35730e4d
Commit
35730e4d
authored
Jul 29, 2006
by
Quanah Gibson-Mount
Browse files
Additional ITS#4622 fixes: don't save contextCSN on incoming context entry
parent
05a1ab16
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/syncrepl.c
View file @
35730e4d
...
...
@@ -1749,6 +1749,22 @@ syncrepl_entry(
ber_memfree
(
a
->
a_vals
[
0
].
bv_val
);
ber_dupbv
(
&
a
->
a_vals
[
0
],
&
syncUUID_strrep
);
}
/* Don't save the contextCSN on the inooming context entry,
* we'll write it when syncrepl_updateCookie eventually
* gets called. (ITS#4622)
*/
if
(
syncstate
==
LDAP_SYNC_ADD
&&
dn_match
(
&
entry
->
e_nname
,
&
be
->
be_nsuffix
[
0
]
))
{
Attribute
**
ap
;
for
(
ap
=
&
entry
->
e_attrs
;
*
ap
;
ap
=&
(
*
ap
)
->
a_next
)
{
a
=
*
ap
;
if
(
a
->
a_desc
==
slap_schema
.
si_ad_contextCSN
)
{
*
ap
=
a
->
a_next
;
attr_free
(
a
);
break
;
}
}
}
}
slap_op_time
(
&
op
->
o_time
,
&
op
->
o_tincr
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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