]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: cache: Always access the stream-int via the conn-stream
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 23 Dec 2021 12:40:08 +0000 (13:40 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 24 Feb 2022 10:00:02 +0000 (11:00 +0100)
To be able to move the stream-interface from the stream to the conn-stream,
all access to the SI is done via the conn-stream. This patch is limited to
the cache part.

src/cache.c

index b4918e75637033ce622a96518f835fc7a41e1800..05f81e589e7d3b6dc0f3a6426e66cd52545bc8d7 100644 (file)
@@ -1812,7 +1812,7 @@ enum act_return http_action_req_cache_use(struct act_rule *rule, struct proxy *p
                }
 
                s->target = &http_cache_applet.obj_type;
-               if ((appctx = si_register_handler(&s->si[1], objt_applet(s->target)))) {
+               if ((appctx = si_register_handler(cs_si(s->csb), objt_applet(s->target)))) {
                        appctx->st0 = HTX_CACHE_INIT;
                        appctx->rule = rule;
                        appctx->ctx.cache.entry = res;