Mailing List Archive

r1050 - trunk/varnish-cache/bin/varnishd
Author: phk
Date: 2006-09-17 20:31:31 +0200 (Sun, 17 Sep 2006)
New Revision: 1050

Modified:
trunk/varnish-cache/bin/varnishd/cache_pool.c
Log:
Oops, off by one.


Modified: trunk/varnish-cache/bin/varnishd/cache_pool.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_pool.c 2006-09-17 18:30:05 UTC (rev 1049)
+++ trunk/varnish-cache/bin/varnishd/cache_pool.c 2006-09-17 18:31:31 UTC (rev 1050)
@@ -242,7 +242,7 @@
unsigned onq;

onq = nq + 1;
- if (onq > nwq)
+ if (onq >= nwq)
onq = 0;
sp->workreq.sess = sp;
qp = wq[onq];