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
7127d5db
Commit
7127d5db
authored
May 09, 2018
by
Ondřej Kuzník
Browse files
ITS
#8850
Wait until backends are closed before freeing connection_pool
parent
33aa4405
Changes
2
Hide whitespace changes
Inline
Side-by-side
servers/slapd/daemon.c
View file @
7127d5db
...
...
@@ -3073,7 +3073,7 @@ loop:
"slapd shutdown: waiting for %d operations/tasks to finish
\n
"
,
t
,
0
,
0
);
}
ldap_pvt_thread_pool_
destroy
(
&
connection_pool
,
1
);
ldap_pvt_thread_pool_
close
(
&
connection_pool
,
1
);
return
NULL
;
}
...
...
servers/slapd/init.c
View file @
7127d5db
...
...
@@ -229,6 +229,9 @@ int slap_shutdown( Backend *be )
"%s shutdown: initiated
\n
"
,
slap_name
,
0
,
0
);
/* Make sure the pool stops now even if we did not start up fully */
ldap_pvt_thread_pool_close
(
&
connection_pool
,
1
);
/* let backends do whatever cleanup they need to do */
return
backend_shutdown
(
be
);
}
...
...
@@ -245,6 +248,8 @@ int slap_destroy(void)
ber_bvarray_free
(
default_referral
);
}
ldap_pvt_thread_pool_free
(
&
connection_pool
);
/* clear out any thread-keys for the main thread */
ldap_pvt_thread_pool_context_reset
(
ldap_pvt_thread_pool_context
());
...
...
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