]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: cli: Make "show fd" aware of per-thread-group FD tables
authorOlivier Houchard <ohouchard@haproxy.com>
Wed, 29 Jul 2026 20:35:02 +0000 (22:35 +0200)
committerOlivier Houchard <cognet@ci0.org>
Thu, 30 Jul 2026 11:35:22 +0000 (13:35 +0200)
commitbeb082d41ba7b0fdfd29b45e67c152f2a8d0db43
tree29ceffed12b5a2df572df8ae9eef2d43a6f3be41
parentc81d794822cf8fa3c2e163cbf4cba80ad0dd9a47
MINOR: cli: Make "show fd" aware of per-thread-group FD tables

The <tgid>/<fd> argument forms of "show fd" were parsed but the tgid was
ignored so far, the dump always reading the local thread's FD table.
Now that each thread group can have its own table, give the tgid its
intended meaning: a specific tgid dumps that group's table only, while
the wildcard and unspecified forms visit every group in turn, so that
"show fd /<fd>" shows what each group knows about a given FD number.
Each entry's group remains visible in the gid= field. The polled_mask
words are read from the dumped group's slice as well, and the dump can
resume from the right group when the output buffer fills up.
When the tables are shared, all the groups alias the same table, so a
single pass is performed as before and the tgid makes no difference.
The tgid is now also validated against the number of configured thread
groups rather than the maximum supported.
src/cli.c