Hi,

So, when the regression will be fixed, one could do this sort of
round-robin by simply using variables? No extra patch needed?

I'm asking because it all sounds too good to be true :p


2013/10/21 Rainer Gerhards <[email protected]>

> On Sun, Oct 20, 2013 at 6:03 PM, Pavel Levshin <[email protected]>
> wrote:
>
> >
> > I am unable to reproduce this behaviour with global variables. This is
> > what I've tried among others:
> >
> >     if $/zz % 3 == 0 or $/zz % 3 == 1 then {
> >         set $/zz = $/zz + 1;
> >         action(...)
> >     } else {
> >         set $/zz = 0;
> >         action(...)
> >     }
> >
> > All I'm getting is:
> >
> > 3963.933927543:7f6b3fd1b700: scriptExec: batch of 1 elements, active
> > (nil), active[0]:1
> > 3963.933934378:7f6b3fd1b700:     IF
> > 3963.933948742:7f6b3fd1b700:             var '$/zz'
> > 3963.933973017:7f6b3fd1b700:           %
> > 3963.933994256:7f6b3fd1b700:             3
> > 3963.934018750:7f6b3fd1b700:         ==
> > 3963.934036744:7f6b3fd1b700:           0
> > 3963.934057878:7f6b3fd1b700:       OR
> > 3963.934073408:7f6b3fd1b700:             var '$/zz'
> > 3963.934097847:7f6b3fd1b700:           %
> > 3963.934118831:7f6b3fd1b700:             3
> > 3963.934143215:7f6b3fd1b700:         ==
> > 3963.934160950:7f6b3fd1b700:           1
> > 3963.934186419:7f6b3fd1b700: eval expr 0x261d1a0, type 'OR'
> > 3963.934193424:7f6b3fd1b700: eval expr 0x261bfa0, type 'CMP_EQ'
> > 3963.934201213:7f6b3fd1b700: eval expr 0x2616f80, type '%[37]'
> > 3963.934208713:7f6b3fd1b700: eval expr 0x2613c70, type 'V[86]'
> > 3963.934220598:7f6b3fd1b700: PROP_INVALID for name '/zz'
> > 3963.934228877:7f6b3fd1b700: invalid property id: '0'
> > 3963.934238507:7f6b3fd1b700: rainerscript: var '$/zz': '**INVALID
> PROPERTY
> > NAME**'
> >
> > Could you please explain how is it supposed to work?
> >
>
> It's supposed to work just as you describe it. But indeed, it doesn't do
> so, I can reproduce the problem. Looks like a regression. Thanks for
> reporting, will now look into it.
>
> Rainer
> _______________________________________________
> rsyslog mailing list
> http://lists.adiscon.net/mailman/listinfo/rsyslog
> http://www.rsyslog.com/professional-services/
> What's up with rsyslog? Follow https://twitter.com/rgerhards
> NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad
> of sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you
> DON'T LIKE THAT.
>
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of 
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE 
THAT.

Reply via email to