From db2e674181faf3a6adc99cf7ce8b26f028e430e8 Mon Sep 17 00:00:00 2001 From: phk Date: Sun, 17 Sep 2006 18:31:31 +0000 Subject: [PATCH] Oops, off by one. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1050 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/cache_pool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/varnish-cache/bin/varnishd/cache_pool.c b/varnish-cache/bin/varnishd/cache_pool.c index 934bee12..421d7d8b 100644 --- a/varnish-cache/bin/varnishd/cache_pool.c +++ b/varnish-cache/bin/varnishd/cache_pool.c @@ -242,7 +242,7 @@ WRK_QueueSession(struct sess *sp) unsigned onq; onq = nq + 1; - if (onq > nwq) + if (onq >= nwq) onq = 0; sp->workreq.sess = sp; qp = wq[onq]; -- 2.39.5