Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
openldap
OpenLDAP
Commits
0da38889
Commit
0da38889
authored
Jan 31, 2021
by
Howard Chu
Browse files
ITS#8541 fix data race in syncprov removal
parent
70488c22
Pipeline
#1427
passed with stage
in 27 minutes and 55 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/overlays/syncprov.c
View file @
0da38889
...
...
@@ -3958,10 +3958,12 @@ syncprov_db_close(
for
(
so
=
si
->
si_ops
,
sonext
=
so
;
so
;
so
=
sonext
)
{
SlapReply
rs
=
{
REP_RESULT
};
rs
.
sr_err
=
LDAP_UNAVAILABLE
;
ldap_pvt_thread_mutex_lock
(
&
so
->
s_mutex
);
send_ldap_result
(
so
->
s_op
,
&
rs
);
sonext
=
so
->
s_next
;
if
(
so
->
s_flags
&
PS_TASK_QUEUED
)
ldap_pvt_thread_pool_retract
(
so
->
s_pool_cookie
);
ldap_pvt_thread_mutex_unlock
(
&
so
->
s_mutex
);
if
(
!
syncprov_drop_psearch
(
so
,
0
))
so
->
s_si
=
NULL
;
}
...
...
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