]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
Merge r1855306 from trunk:
authorYann Ylavic <ylavic@apache.org>
Wed, 13 Mar 2019 08:59:54 +0000 (08:59 +0000)
committerYann Ylavic <ylavic@apache.org>
Wed, 13 Mar 2019 08:59:54 +0000 (08:59 +0000)
commitc2eb8c657efd6b33c725de6a1e365ac5d6623fec
treee5daa017d89216b8c63cebca9fdfc697050446e9
parentcf04c4522075ae27a1543d018cdb7b30e1db8077
Merge r1855306 from trunk:

MPMs unix: bind the bucket number of each child to its slot number

We need not remember each child's bucket number in SHM for restarts, for the
lifetime of the httpd main process the bucket number can be bound to the slot
number such that: bucket = slot % num_buckets.

This both simplifies the logic and helps children maintenance per bucket in
threaded MPMs, where previously perform_idle_server_maintenance() could create
or kill children processes for the buckets it was not in charge of.

Submitted by: ylavic
Reviewed by: ylavic, rpluem, jorton

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1855378 13f79535-47bb-0310-9956-ffa450edef68
CHANGES
include/scoreboard.h
server/mpm/event/event.c
server/mpm/prefork/prefork.c
server/mpm/worker/worker.c