projects
/
haproxy-2.5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
14df1e1
)
MINOR: cache: Remove redundant test in http_action_req_cache_use
author
Remi Tricot-Le Breton
<rlebreton@haproxy.com>
Wed, 23 Dec 2020 17:13:52 +0000
(18:13 +0100)
committer
Willy Tarreau
<w@1wt.eu>
Thu, 24 Dec 2020 16:18:00 +0000
(17:18 +0100)
The suppressed check is fully covered by the next one and can then be
removed.
src/cache.c
patch
|
blob
|
history
diff --git
a/src/cache.c
b/src/cache.c
index
101ef35
..
1f1428d
100644
(file)
--- a/
src/cache.c
+++ b/
src/cache.c
@@
-1767,9
+1767,6
@@
enum act_return http_action_req_cache_use(struct act_rule *rule, struct proxy *p
if (!sha1_hosturi(s))
return ACT_RET_CONT;
- if ((s->txn->flags & (TX_CACHE_IGNORE|TX_CACHEABLE)) == TX_CACHE_IGNORE)
- return ACT_RET_CONT;
-
if (s->txn->flags & TX_CACHE_IGNORE)
return ACT_RET_CONT;