]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: sample: mark the truly constant sample fetch keywords as such
authorWilly Tarreau <w@1wt.eu>
Fri, 26 Mar 2021 11:03:11 +0000 (12:03 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 26 Mar 2021 15:23:45 +0000 (16:23 +0100)
commit0209c970386d2d5e090f89d3e022d14896fc081d
treecf65a970d89cca205c17ef3a3a05bc6643a7d5e5
parentbe2159b946a1b16f3ebff8f612947d066fb937e1
MINOR: sample: mark the truly constant sample fetch keywords as such

A number of keywords are really constant and safe to use at config
time. This is the case for str(), int() etc but also env(), hostname(),
nbproc() etc. By extension a few other ones which can be useful to
preset values in a configuration were enabled as well, like data(),
rand() or uuid(). At the moment this doesn't change anything as they
are still only usable from runtime rules.

The "var()" keyword was also marked as const as it can definitely
return stable stuff at boot time.
src/sample.c
src/vars.c