commit | f39c71c98174e0691c048ed4935b045ea64f93e4 | [log] [tgz] |
---|---|---|
author | Krzysztof Piotr Oledzki <ole@ans.pl> | Fri Jan 30 00:52:49 2009 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Wed Feb 04 22:39:03 2009 +0100 |
tree | a4b46aa34fd03995c42e2e1803b9dd255f09a14d | |
parent | 0b9c02c861c7795f5aa27d25efd2dbeb31a3ac6c [diff] |
[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.