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
9f014b41
Commit
9f014b41
authored
Feb 19, 2021
by
Ondřej Kuzník
Committed by
Quanah Gibson-Mount
May 10, 2021
Browse files
ITS#8747 Protect shutdown code while workers are still alive
parent
39be7e07
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/lloadd/daemon.c
View file @
9f014b41
...
...
@@ -1332,10 +1332,14 @@ lloadd_daemon( struct event_base *daemon_base )
/* Mark upstream connections closing and prevent from opening new ones */
LDAP_CIRCLEQ_FOREACH
(
b
,
&
backend
,
b_next
)
{
epoch_t
epoch
=
epoch_join
();
checked_lock
(
&
b
->
b_mutex
);
b
->
b_numconns
=
b
->
b_numbindconns
=
0
;
backend_reset
(
b
,
1
);
checked_unlock
(
&
b
->
b_mutex
);
epoch_leave
(
epoch
);
}
/* Do the same for clients */
...
...
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