httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ruediger Pluem <rpl...@apache.org>
Subject Re: Copied workers in balancer?
Date Fri, 14 Apr 2006 22:06:20 GMT


On 04/14/2006 05:20 PM, Mladen Turk wrote:
> Ruediger Pluem wrote:


>>
>>
>> Ok, I understand these goals, but as far as I can see from the current
>> code
>> they do not share the error status as they are using different scoreboard
>> slots and thus w1 from b1 is using a different proxy_worker_stat then
>> w1 from b2.
>>
> 
> But they are (at least they were).
> proxy_worker struct that we memcpy to the new slot
> in ap_proxy_add_worker_to_balancer has a pointer
> to the proxy_worker_stat, so they are shared.

Correct, but at the point of time we copy this pointer it, is not
initialized. This is done later for each copy of the worker in
ap_proxy_initialize_worker_share. Thus they point to different
proxy_worker_stat 's.

> 
> That was the reason why those two structures are
> separated at the first place.

Thanks for clarification.

Regards

RĂ¼diger



Mime
View raw message