r1050 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Sun Sep 17 20:31:31 CEST 2006


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];




More information about the varnish-commit mailing list