]> git.ipfire.org Git - thirdparty/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:03 +0000 (22:39 +0100)
commitf39c71c98174e0691c048ed4935b045ea64f93e4
treea4b46aa34fd03995c42e2e1803b9dd255f09a14d
parent0b9c02c861c7795f5aa27d25efd2dbeb31a3ac6c
[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