From: Jeff Trawick Date: Wed, 13 Mar 2002 12:25:31 +0000 (+0000) Subject: Fix the calculation of thread_num in the worker score structure. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c693c562b07a7904684c3856fa38202520612d8b;p=apache Fix the calculation of thread_num in the worker score structure. Submitted by: Stas Bekman Reviewed by: Jeff Trawick git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93900 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/CHANGES b/CHANGES index 84300e29ea..c8c4a65b0f 100644 --- a/CHANGES +++ b/CHANGES @@ -1,4 +1,8 @@ Changes with Apache 2.0.34-dev + + *) Fix the calculation of thread_num in the worker score structure. + [Stas Bekman] + *) Use apr_atomic operations in managing the mod_mem_cache cache_objects for SMP scalability. (see USE_ATOMICS preprocessor directive in mod_file_cache) diff --git a/server/scoreboard.c b/server/scoreboard.c index be5befbfd8..a5fdcec886 100644 --- a/server/scoreboard.c +++ b/server/scoreboard.c @@ -429,7 +429,7 @@ AP_DECLARE(int) ap_update_child_status_from_indexes(int child_num, if (status == SERVER_READY && old_status == SERVER_STARTING) { - ws->thread_num = child_num * server_limit + thread_num; + ws->thread_num = child_num * thread_limit + thread_num; ps->generation = ap_my_generation; }