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
openldap
OpenLDAP
Commits
709d805f
Commit
709d805f
authored
May 01, 2020
by
Ondřej Kuzník
Committed by
Quanah Gibson-Mount
May 22, 2020
Browse files
ITS#9059 Skip mincsn check if sessionlog replay was successful
parent
9183abe6
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/overlays/syncprov.c
View file @
709d805f
...
...
@@ -2883,7 +2883,9 @@ no_change: if ( !(op->o_sync_mode & SLAP_SYNC_PERSIST) ) {
}
}
/* Is the CSN still present in the database? */
if
(
syncprov_findcsn
(
op
,
FIND_CSN
,
&
mincsn
)
!=
LDAP_SUCCESS
)
{
if
(
!
do_present
)
{
gotstate
=
1
;
}
else
if
(
syncprov_findcsn
(
op
,
FIND_CSN
,
&
mincsn
)
!=
LDAP_SUCCESS
)
{
/* No, so a reload is required */
/* the 2.2 consumer doesn't send this hint */
if
(
si
->
si_usehint
&&
srs
->
sr_rhint
==
0
)
{
...
...
@@ -2910,8 +2912,7 @@ no_change: if ( !(op->o_sync_mode & SLAP_SYNC_PERSIST) ) {
}
else
{
gotstate
=
1
;
/* If changed and doing Present lookup, send Present UUIDs */
if
(
do_present
&&
syncprov_findcsn
(
op
,
FIND_PRESENT
,
0
)
!=
LDAP_SUCCESS
)
{
if
(
syncprov_findcsn
(
op
,
FIND_PRESENT
,
0
)
!=
LDAP_SUCCESS
)
{
if
(
ctxcsn
)
ber_bvarray_free_x
(
ctxcsn
,
op
->
o_tmpmemctx
);
if
(
sids
)
...
...
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