]> git.kaiwu.me - haproxy.git/commitdiff
CLEANUP: cache: remove redundant res_htx assignment in http_cache_io_handler()
authorWilly Tarreau <w@1wt.eu>
Mon, 11 May 2026 13:27:06 +0000 (15:27 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 11 May 2026 14:04:19 +0000 (16:04 +0200)
It's probably a leftover of an old check, res_htx is assigned twice the
same way. Let's just drop one.

src/cache.c

index 4f4870524109b715fdc963289c59f78744caaccd..0c27eec1eb49e7e1e948f69f5c68807360dc242d 100644 (file)
@@ -1801,8 +1801,6 @@ static void http_cache_io_handler(struct appctx *appctx)
                goto exit;
        }
 
-       res_htx = htx_from_buf(&appctx->outbuf);
-
        len = first->len - sizeof(*cache_ptr) - ctx->sent;
        res_htx = htx_from_buf(&appctx->outbuf);