]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: trace: remove backend retrieval attempt from conn->target
authorWilly Tarreau <w@1wt.eu>
Fri, 26 Jun 2026 09:10:43 +0000 (11:10 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 26 Jun 2026 09:10:43 +0000 (11:10 +0200)
Since we may no longer see conn->target point to the proxy, let's drop
the retrieval attempt for a backend there in __trace_enabled().

src/trace.c

index 6060d4df2540c36b26d83b96709ddc76e4293d22..23636966fd7a3d15768d4beb69b47fbc8f031a86 100644 (file)
@@ -181,9 +181,6 @@ int __trace_enabled(enum trace_level level, uint64_t mask, struct trace_source *
        if (ctx.srv && !ctx.be)
                ctx.be = ctx.srv->proxy;
 
-       if (!ctx.be && ctx.conn)
-               ctx.be = objt_proxy(ctx.conn->target);
-
        /* TODO: add handling of filters here, return if no match (not even update states) */
 
        /* check if we need to start the trace now */