summaryrefslogtreecommitdiffstats
path: root/ldap/servers/slapd/monitor.c
diff options
context:
space:
mode:
authorNoriko Hosoi <nhosoi@redhat.com>2007-09-20 16:54:38 +0000
committerNoriko Hosoi <nhosoi@redhat.com>2007-09-20 16:54:38 +0000
commit09e20f4fb827e83ceda3b6dc4fceadbaa16d77ed (patch)
treef1a943b7c99946ad5f076afa167f333eb4fc5d0d /ldap/servers/slapd/monitor.c
parentedaab77a5d2f01b8c2638737138f0916fa36a645 (diff)
downloadds-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/monitor.c')
-rw-r--r--ldap/servers/slapd/monitor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ldap/servers/slapd/monitor.c b/ldap/servers/slapd/monitor.c
index 096e3ced..0f336c39 100644
--- a/ldap/servers/slapd/monitor.c
+++ b/ldap/servers/slapd/monitor.c
@@ -86,7 +86,7 @@ monitor_info(Slapi_PBlock *pb, Slapi_Entry* e, Slapi_Entry* entryAfter, int *ret
attrlist_replace( &e->e_attrs, "version", vals );
slapi_ch_free( (void **) &val.bv_val );
- sprintf( buf, "%d", active_threads );
+ sprintf( buf, "%d", g_get_active_threadcnt() );
val.bv_val = buf;
val.bv_len = strlen( buf );
attrlist_replace( &e->e_attrs, "threads", vals );