]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: sample: fix sample_process handling of unstable data
authorWilly Tarreau <w@1wt.eu>
Thu, 25 Jul 2013 10:02:38 +0000 (12:02 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 25 Jul 2013 13:00:37 +0000 (15:00 +0200)
commit18387e2e486fb3d6c1623c1911752639622288d2
tree5fafa41ab64732b10f79a197c9195ea6e9ec98c0
parent833cc79434be9c5d33267a389766b850579334f2
MINOR: sample: fix sample_process handling of unstable data

sample_process() used to return NULL on changing data, regardless of the
SMP_OPT_FINAL flag. Let's change this so that it is now possible to
include such data in logs or HTTP headers. Also, one unconvenient
thing was that it used to always set the sample flags to zero, making
it incompatible with ACLs which may need to call it multiple times. Only
do this for locally-allocated samples.
src/sample.c