]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: session/trace: use distinct flags for SESS_EV_END and _ERR
authorWilly Tarreau <w@1wt.eu>
Sat, 16 May 2026 18:28:16 +0000 (20:28 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 16 May 2026 18:29:40 +0000 (20:29 +0200)
Session traces were brought in 3.1 by commit abb07af67 ("MINOR:
session/trace: enable very minimal session tracing") though there was
an issue, because SESS_EV_END and SESS_EV_ERR have the same value (it's
a copy-paste mistake).

This can be backported to 3.2.

src/session.c

index 0436671c517fe47a486019512fb933e2a7fc10e5..a442373136f1c865eaf67c9ce399d9a63e376165 100644 (file)
@@ -39,7 +39,7 @@ static const struct trace_event sess_trace_events[] = {
        { .mask = SESS_EV_NEW,      .name = "sess_new",     .desc = "new session creation" },
 #define           SESS_EV_END       (1ULL <<  1)
        { .mask = SESS_EV_END,      .name = "sess_end",     .desc = "session termination" },
-#define           SESS_EV_ERR       (1ULL <<  1)
+#define           SESS_EV_ERR       (1ULL <<  2)
        { .mask = SESS_EV_ERR,      .name = "sess_err",     .desc = "session error" },
        { }
 };