You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by André Malo <nd...@perlig.de> on 2014/02/16 15:58:18 UTC

Duplicate directive HeartbeatStorage

Hi there,

We do have one duplicate directive in our tree: HeartbeatStorage (defined in 
mod_lbmethod_heartbeat.c and mod_heartmonitor.c)

I find this confusing. How does it work? Without digging through the config 
code: are they even both initialized? What if they were defined with 
different syntax specs? Or is it just a mistake?

Thanks, nd
-- 
s;.*;aaaaaoaaaoaaaaooooaaoaaaomaaaa:a:alataa:aaoat:a:a:a
maoaa:a:laoata:a:oia:a:o:a:m:a:o:alaoooat:aaool:aaoaa
matooololaaatoto:aaa:o:a:o:m;;s:\s:\::g;y;mailto:;
\40\51/\134\137|ndparker <nd...@perlig.de>;;print;

Re: Duplicate directive HeartbeatStorage

Posted by André Malo <nd...@perlig.de>.
On Thursday 20 February 2014 16:13:01 Eric Covener wrote:
> On Thu, Feb 20, 2014 at 10:04 AM, André Malo <nd...@perlig.de> wrote:
> > Anyone?
> >
> > The doc build tools are confused as well ;-)
> >
> > nd
> >
> > On Sunday 16 February 2014 15:58:18 André Malo wrote:
> >> Hi there,
> >>
> >> We do have one duplicate directive in our tree: HeartbeatStorage
> >> (defined in mod_lbmethod_heartbeat.c and mod_heartmonitor.c)
> >>
> >> I find this confusing. How does it work? Without digging through the
> >> config code: are they even both initialized? What if they were defined
> >> with different syntax specs? Or is it just a mistake?
>
> I do recall it is viable for two modules to use the same directive and
> both get called back when it's specified.  They could have differeng
> TAKE12, RAW_ARGS, etc as long as the actual args were compatible with
> both.


Hmm. Then it's still the question, why would we want that? It looks to me like 
a design error (besides, as said, it's confusing).

I'm not sure, when I'll get around to dig through the code. So, if someone can 
help here, it would be appreciated :-)

nd

Re: Duplicate directive HeartbeatStorage

Posted by Eric Covener <co...@gmail.com>.
On Thu, Feb 20, 2014 at 10:04 AM, André Malo <nd...@perlig.de> wrote:
> Anyone?
>
> The doc build tools are confused as well ;-)
>
> nd
>
> On Sunday 16 February 2014 15:58:18 André Malo wrote:
>> Hi there,
>>
>> We do have one duplicate directive in our tree: HeartbeatStorage (defined
>> in mod_lbmethod_heartbeat.c and mod_heartmonitor.c)
>>
>> I find this confusing. How does it work? Without digging through the config
>> code: are they even both initialized? What if they were defined with
>> different syntax specs? Or is it just a mistake?

I do recall it is viable for two modules to use the same directive and
both get called back when it's specified.  They could have differeng
TAKE12, RAW_ARGS, etc as long as the actual args were compatible with
both.

Re: Duplicate directive HeartbeatStorage

Posted by André Malo <nd...@perlig.de>.
Anyone?

The doc build tools are confused as well ;-)

nd

On Sunday 16 February 2014 15:58:18 André Malo wrote:
> Hi there,
>
> We do have one duplicate directive in our tree: HeartbeatStorage (defined
> in mod_lbmethod_heartbeat.c and mod_heartmonitor.c)
>
> I find this confusing. How does it work? Without digging through the config
> code: are they even both initialized? What if they were defined with
> different syntax specs? Or is it just a mistake?
>
> Thanks, nd