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
Joe Martin
OpenLDAP
Commits
9f19b2aa
Commit
9f19b2aa
authored
Mar 12, 2009
by
Quanah Gibson-Mount
Browse files
ITS#5973 - Revert syncrepl portion
parent
e544dad0
Changes
2
Hide whitespace changes
Inline
Side-by-side
CHANGES
View file @
9f19b2aa
...
...
@@ -10,7 +10,6 @@ OpenLDAP 2.4.16 Engineering
Fixed slapd backglue with empty DBs (ITS#5986)
Fixed slapd ctxcsn race condition (ITS#6001)
Fixed slapd syncrepl newCookie sync messages (ITS#5972)
Fixed slapd syncrepl multiple CSN propagation (ITS#5973)
Fixed slapd syncrepl hang during shutdown (ITS#6011)
Fixed slapd-bdb/hdb cachesize handling (ITS#5860)
Fixed slapd-bdb/hdb with slapcat with empty dn (ITS#6006)
...
...
servers/slapd/syncrepl.c
View file @
9f19b2aa
...
...
@@ -2898,11 +2898,12 @@ syncrepl_updateCookie(
{
Backend
*
be
=
op
->
o_bd
;
Modifications
mod
;
struct
berval
first
=
BER_BVNULL
;
#ifdef CHECK_CSN
Syntax
*
syn
=
slap_schema
.
si_ad_contextCSN
->
ad_type
->
sat_syntax
;
#endif
int
rc
,
i
,
j
,
csn_changed
=
0
;
int
rc
,
i
,
j
;
ber_len_t
len
;
slap_callback
cb
=
{
NULL
};
...
...
@@ -2944,7 +2945,13 @@ syncrepl_updateCookie(
if
(
memcmp
(
syncCookie
->
ctxcsn
[
i
].
bv_val
,
si
->
si_cookieState
->
cs_vals
[
j
].
bv_val
,
len
)
>
0
)
{
mod
.
sml_values
[
j
]
=
syncCookie
->
ctxcsn
[
i
];
csn_changed
=
1
;
if
(
BER_BVISNULL
(
&
first
)
)
{
first
=
syncCookie
->
ctxcsn
[
i
];
}
else
if
(
memcmp
(
syncCookie
->
ctxcsn
[
i
].
bv_val
,
first
.
bv_val
,
first
.
bv_len
)
>
0
)
{
first
=
syncCookie
->
ctxcsn
[
i
];
}
}
break
;
}
...
...
@@ -2954,16 +2961,23 @@ syncrepl_updateCookie(
(
mod
.
sml_numvals
+
2
)
*
sizeof
(
struct
berval
),
op
->
o_tmpmemctx
);
mod
.
sml_values
[
mod
.
sml_numvals
++
]
=
syncCookie
->
ctxcsn
[
i
];
BER_BVZERO
(
&
mod
.
sml_values
[
mod
.
sml_numvals
]
);
csn_changed
=
1
;
if
(
BER_BVISNULL
(
&
first
)
)
{
first
=
syncCookie
->
ctxcsn
[
i
];
}
else
if
(
memcmp
(
syncCookie
->
ctxcsn
[
i
].
bv_val
,
first
.
bv_val
,
first
.
bv_len
)
>
0
)
{
first
=
syncCookie
->
ctxcsn
[
i
];
}
}
}
/* Should never happen, ITS#5065 */
if
(
!
csn_changed
)
{
if
(
BER_BVISNULL
(
&
first
)
)
{
ldap_pvt_thread_mutex_unlock
(
&
si
->
si_cookieState
->
cs_mutex
);
op
->
o_tmpfree
(
mod
.
sml_values
,
op
->
o_tmpmemctx
);
return
0
;
}
op
->
o_bd
=
si
->
si_wbe
;
slap_queue_csn
(
op
,
&
first
);
op
->
o_tag
=
LDAP_REQ_MODIFY
;
cb
.
sc_response
=
null_callback
;
...
...
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