]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: backend: nbsrv() should return 0 if backend is disabled
authorMarcin Deranek <marcin.deranek@booking.com>
Thu, 22 Dec 2016 15:21:08 +0000 (16:21 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 22 Dec 2016 23:09:12 +0000 (00:09 +0100)
commit57b877147d726a743a038e7101b6d2e6922116c7
treecf751c8b45cf79741bf60d25b6a60064e500b480
parentef934603c04d6c6cc7e9e537048a099427b19b10
BUG/MINOR: backend: nbsrv() should return 0 if backend is disabled

According to nbsrv() documentation this fetcher should return "an
integer value corresponding to the number of usable servers".
In case backend is disabled none of servers is usable, so I believe
fetcher should return 0.

This patch should be backported to 1.7, 1.6, 1.5.
src/backend.c