]> err.no Git - varnish/commit
Fix an off-by-one error in the random director, which made it unable to
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 8 Sep 2008 18:12:19 +0000 (18:12 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 8 Sep 2008 18:12:19 +0000 (18:12 +0000)
commit4027b3e4aa2670d576f36a09651e508ab2639a4b
tree36fda5301443b46ffe6e767a9251995cb1d553cd
parentd3c6883f0d276bfc40a51d238731d4ecec38d81c
Fix an off-by-one error in the random director, which made it unable to
use the single remaining healthy backend.

Add regression test.

Fixes: ticket #306
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3174 d4fa192b-c00b-0410-8231-f00ffab90ce4
varnish-cache/bin/varnishd/cache_dir_random.c
varnish-cache/bin/varnishtest/tests/r00306.vtc [new file with mode: 0644]