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
8b43a847
Commit
8b43a847
authored
Feb 01, 2007
by
Howard Chu
Browse files
Fix ITS#4827, was losing the entryCSN mod.
parent
7ccef3ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/syncrepl.c
View file @
8b43a847
...
...
@@ -2383,7 +2383,7 @@ static void
attr_cmp
(
Operation
*
op
,
Attribute
*
old
,
Attribute
*
new
,
Modifications
***
mret
,
Modifications
***
mcur
)
{
int
i
,
j
,
doadd
=
0
;
int
i
,
j
;
Modifications
*
mod
,
**
modtail
;
modtail
=
*
mret
;
...
...
@@ -2498,13 +2498,14 @@ attr_cmp( Operation *op, Attribute *old, Attribute *new,
}
/* advance to next element */
mod
=
**
mcur
;
if
(
i
!=
j
)
{
**
mcur
=
mod
->
sml_next
;
*
modtail
=
mod
;
modtail
=
&
mod
->
sml_next
;
}
else
{
if
(
mod
)
if
(
mod
)
{
if
(
i
!=
j
)
{
**
mcur
=
mod
->
sml_next
;
*
modtail
=
mod
;
modtail
=
&
mod
->
sml_next
;
}
else
{
*
mcur
=
&
mod
->
sml_next
;
}
}
*
mret
=
modtail
;
}
...
...
@@ -2574,12 +2575,12 @@ dn_callback(
for
(
old
=
rs
->
sr_entry
->
e_attrs
,
new
=
dni
->
new_entry
->
e_attrs
;
old
&&
new
;
)
{
#if 1
/* If we've seen this before, use its mod now */
if
(
new
->
a_flags
&
SLAP_ATTR_IXADD
)
{
attr_cmp
(
op
,
NULL
,
new
,
&
modtail
,
&
ml
);
new
=
new
->
a_next
;
continue
;
}
#endif
if
(
old
->
a_desc
!=
new
->
a_desc
)
{
Modifications
*
mod
;
Attribute
*
tmp
;
...
...
@@ -2613,7 +2614,12 @@ dn_callback(
old
=
old
->
a_next
;
continue
;
}
attr_cmp
(
op
,
old
,
new
,
&
modtail
,
&
ml
);
/* kludge - always update modifiersName so that it
* stays co-located with the other mod opattrs
*/
attr_cmp
(
op
,
old
->
a_desc
!=
slap_schema
.
si_ad_modifiersName
?
old
:
NULL
,
new
,
&
modtail
,
&
ml
);
new
=
new
->
a_next
;
old
=
old
->
a_next
;
}
...
...
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