]> git.kaiwu.me - haproxy.git/commit
[CRITICAL] fix server state tracking: it was O(n!) instead of O(n)
authorKrzysztof Piotr Oledzki <ole@ans.pl>
Thu, 29 Jan 2009 23:52:49 +0000 (00:52 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 4 Feb 2009 21:39:19 +0000 (22:39 +0100)
commit121c80111c37ff291d04fde300d035dff313af57
tree8c53c86d5c4e836ec043bfa1dbccadc6ea6fd3b5
parente345830accc34ca46f7d6049251e085d75499e3c
[CRITICAL] fix server state tracking: it was O(n!) instead of O(n)

Using the wrong operator (&& instead of &) causes DOWN->UP
transition to take longer than it should and to produce a lot of
redundant logs. With typical "track" usage (1-6 tracking servers) it
shouldn't make a big difference but for heavily tracked servers
this bug leads to hang with 100% CPU usage and extremely big
log spam.
src/checks.c