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-Tag: CHANGES~81 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d86a35b7e54d340dedefac9159c39a1fdd5413e5;p=thirdparty%2Fapache%2Fhttpd.git 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 84300e29eab..c8c4a65b0f1 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 be5befbfd83..a5fdcec8864 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; }