Subject: | bug in ACTIVE_WORKER check |
Date: | Mon, 25 May 2020 17:30:55 +0300 |
To: | bug-Apache-Scoreboard [...] rt.cpan.org |
From: | Дарья Федорова <d.fedorova [...] corp.mail.ru> |
Hi,
ACTIVE_WORKER defined in Scoreboard.xs returns true for worker if access_count > 0 for any status
This check should not check access_count at all
/* a worker that does something at this very moment */
#define ACTIVE_WORKER(ws) \
!(ws->access_count == 0 && \
(ws->status == SERVER_DEAD || ws->status == SERVER_READY))
Module Version: 2.10
--
Daria Fedorova