]> err.no Git - varnish/commit
Fix the broken logic in the random directors picking routine.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 5 Nov 2008 12:51:51 +0000 (12:51 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 5 Nov 2008 12:51:51 +0000 (12:51 +0000)
commit0960c201b55968b0606225034cc2831ff04bea03
tree30ff5ca62cfde231a03ea0cd6acae85be4047f9f
parentd04258f8eb14e944784d259d7b8af4eafc95558d
Fix the broken logic in the random directors picking routine.

Drop the consistency check for health-changes, at the cost of a
slight bias[1] for hosts before, or after, then one that changed health,
according to how its health changed.

Count all failures to pick against the retry count.

Fixes #361

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3359 d4fa192b-c00b-0410-8231-f00ffab90ce4
varnish-cache/bin/varnishd/cache_dir_random.c