Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
James Lowden
OpenLDAP
Commits
57643b43
Commit
57643b43
authored
Sep 12, 2020
by
Howard Chu
Browse files
ITS#9345 syncrepl: call check_syncprov on freshly started consumer
parent
47ec1687
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/syncrepl.c
View file @
57643b43
...
...
@@ -1067,12 +1067,8 @@ do_syncrep1(
}
ldap_pvt_thread_mutex_unlock
(
&
si
->
si_cookieState
->
cs_mutex
);
}
}
ch_free
(
si
->
si_syncCookie
.
octet_str
.
bv_val
);
slap_compose_sync_cookie
(
NULL
,
&
si
->
si_syncCookie
.
octet_str
,
si
->
si_syncCookie
.
ctxcsn
,
si
->
si_syncCookie
.
rid
,
si
->
si_syncCookie
.
sid
,
NULL
);
}
else
{
/* ITS#6367: recreate the cookie so it has our SID, not our peer's */
ch_free
(
si
->
si_syncCookie
.
octet_str
.
bv_val
);
BER_BVZERO
(
&
si
->
si_syncCookie
.
octet_str
);
...
...
@@ -1084,8 +1080,6 @@ do_syncrep1(
si
->
si_syncCookie
.
sid
,
NULL
);
}
}
Debug
(
LDAP_DEBUG_SYNC
,
"do_syncrep1: %s starting refresh (sending cookie=%s)
\n
"
,
si
->
si_ridtxt
,
si
->
si_syncCookie
.
octet_str
.
bv_val
);
...
...
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