]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: counters: factor out smp_fetch_sc*_trackers
authorWilly Tarreau <w@1wt.eu>
Tue, 23 Jul 2013 16:32:02 +0000 (18:32 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 1 Aug 2013 19:17:14 +0000 (21:17 +0200)
commit563eef4e30a6df004d51e3a2d11ca15aebb3342d
treeb83d2a2a55e4e41e5de89b1f71ca93e86b5368a9
parenta0b68eddef149fd4ba26a26d6e25d34692478bfd
MEDIUM: counters: factor out smp_fetch_sc*_trackers

smp_fetch_sc0_trackers, smp_fetch_sc1_trackers and smp_fetch_sc2_trackers
were merged into a single function which relies on the fetch name to decide
what to return.

This is also a bug fix for this feature which has never worked till its bogus
introduction by commit "2406db4 MEDIUM: counters: add sc1_trackers/sc2_trackers"
(1.5-dev10).

Instead of returning the value in the sample, it was returned as the fetch
result!

There is no need to backport this fix anyway since it's 1.5-specific and
nobody uses the feature.
src/session.c