]> git.kaiwu.me - haproxy.git/commitdiff
CLEANUP: sessions: simplify the sess_priv_conns pool name
authorWilly Tarreau <w@1wt.eu>
Mon, 8 Jun 2026 06:44:25 +0000 (08:44 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 8 Jun 2026 06:44:25 +0000 (08:44 +0200)
Using "show pools detailed" on the CLI breaks the column alignment on
"sess_priv_conns" because the pool name contains spaces: "session priv
conns list", which is not welcome as pool names are truncated after the
12th chars anyway. Let's shorten it to the pool's name as done for many
other ones: sess_priv_conns.

This can be backported as far as 3.0 where this name was introduced,
because it helps when trying to sum or graph certain metrics during
debugging.

src/session.c

index d5bd4ea9581df199b9d5bf0e1118dfc76ca15215..4c6bbf604577213f13a430ab18aca25fbc81da54 100644 (file)
@@ -30,7 +30,7 @@
 
 
 DECLARE_TYPED_POOL(pool_head_session, "session", struct session);
-DECLARE_TYPED_POOL(pool_head_sess_priv_conns, "session priv conns list", struct sess_priv_conns);
+DECLARE_TYPED_POOL(pool_head_sess_priv_conns, "sess_priv_conns", struct sess_priv_conns);
 
 int conn_complete_session(struct connection *conn);