BUG/MINOR: poll: fix abnormally high skip_fd counter
authorWilly Tarreau <w@1wt.eu>
Fri, 30 Jul 2021 12:04:28 +0000 (14:04 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 12 Aug 2021 15:00:47 +0000 (17:00 +0200)
commitb7d186d893c0fd0ef18bac9aa0a0907b23cbe415
tree9107aaa616fdb6f0780993fb3e1e40fd04196636
parentdaf9e8680d6e4ed18af960396523b3475a07e69b
BUG/MINOR: poll: fix abnormally high skip_fd counter

The skip_fd counter that is incremented when a migrated FD is reported
was abnormally high in with poll. The reason is that it was accounted
for before preparing the polled events instead of being measured from
the reported events.

This mistake was done when the counters were introduced in 1.9 with
commit d80cb4ee1 ("MINOR: global: add some global activity counters to
help debugging"). It may be backported as far as 2.0.

(cherry picked from commit 177119bb110123b8b7510b93a77f07cc210af26c)
Signed-off-by: Willy Tarreau <w@1wt.eu>
(cherry picked from commit 2565905728d65bc31b4be20e0629cb4c5299d9b8)
Signed-off-by: Willy Tarreau <w@1wt.eu>
src/ev_poll.c