From c693c562b07a7904684c3856fa38202520612d8b Mon Sep 17 00:00:00 2001 From: Jeff Trawick Date: Wed, 13 Mar 2002 12:25:31 +0000 Subject: [PATCH] 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 --- CHANGES | 4 ++++ server/scoreboard.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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; } -- 2.50.1