]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: cache: Don't needlessly test "cache" keyword in parse_cache_flt()
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 18 May 2020 09:58:16 +0000 (11:58 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 18 May 2020 15:47:18 +0000 (17:47 +0200)
commit2a37cdbe6b2cf7e9fa8654ee017af12ceb6015c2
tree2c4d231a802213100eb26418c44ae799d916eaeb
parent3b78809de09c6227164f6f48d587f86c827d5de1
BUG/MINOR: cache: Don't needlessly test "cache" keyword in parse_cache_flt()

parse_cache_flt() is the registered callback for the "cache" filter keyword. It
is only called when the "cache" keyword is found on a filter line. So, it is
useless to test the filter name in the callback function.

This patch should fix the issue #634. It may be backported as far as 1.9.
src/cache.c