diff options
| author | Noriko Hosoi <nhosoi@redhat.com> | 2007-09-20 16:54:38 +0000 |
|---|---|---|
| committer | Noriko Hosoi <nhosoi@redhat.com> | 2007-09-20 16:54:38 +0000 |
| commit | 09e20f4fb827e83ceda3b6dc4fceadbaa16d77ed (patch) | |
| tree | f1a943b7c99946ad5f076afa167f333eb4fc5d0d /ldap/servers/slapd/psearch.c | |
| parent | edaab77a5d2f01b8c2638737138f0916fa36a645 (diff) | |
| download | ds-09e20f4fb827e83ceda3b6dc4fceadbaa16d77ed.tar.gz ds-09e20f4fb827e83ceda3b6dc4fceadbaa16d77ed.tar.xz ds-09e20f4fb827e83ceda3b6dc4fceadbaa16d77ed.zip | |
Resolves: #240897
Summary: CRM 1474928 : ds7.1 db index/vlv not handling a stop-slapd, hangs slapd
Description:
1. moved active thread count from ns-slapd to libslapd for the task threads to
use.
2. provided APIs to increment/decrement/get the active thread count
3. let task threads increment the active thread count when it's spawned and
decrement it when it quits.
Diffstat (limited to 'ldap/servers/slapd/psearch.c')
| -rw-r--r-- | ldap/servers/slapd/psearch.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ldap/servers/slapd/psearch.c b/ldap/servers/slapd/psearch.c index 4f691255..cc5b1265 100644 --- a/ldap/servers/slapd/psearch.c +++ b/ldap/servers/slapd/psearch.c @@ -295,7 +295,7 @@ ps_send_results( void *arg ) char **pbattrs = NULL; int conn_acq_flag = 0; - PR_AtomicIncrement( &active_threads ); + g_incr_active_threadcnt(); /* need to acquire a reference to this connection so that it will not be released or cleaned up out from under us */ @@ -443,7 +443,7 @@ ps_send_results( void *arg ) pe_ch_free( &peq ); } slapi_ch_free((void **) &ps ); - PR_AtomicDecrement(&active_threads); + g_decr_active_threadcnt(); } |
