r2862 - trunk/varnish-cache/lib/libvarnishapi
des at projects.linpro.no
des at projects.linpro.no
Mon Jun 30 03:44:33 CEST 2008
Author: des
Date: 2008-06-30 03:44:33 +0200 (Mon, 30 Jun 2008)
New Revision: 2862
Modified:
trunk/varnish-cache/lib/libvarnishapi/shmlog.c
Log:
The correct return value when we reach the end is -1, not 0.
Modified: trunk/varnish-cache/lib/libvarnishapi/shmlog.c
===================================================================
--- trunk/varnish-cache/lib/libvarnishapi/shmlog.c 2008-06-30 01:40:12 UTC (rev 2861)
+++ trunk/varnish-cache/lib/libvarnishapi/shmlog.c 2008-06-30 01:44:33 UTC (rev 2862)
@@ -300,7 +300,7 @@
continue;
} else if (vd->keep) {
if (--vd->keep == 0)
- return (0);
+ return (-1);
}
if (vd->map[p[SHMLOG_TAG]] & M_SELECT) {
*pp = p;
More information about the varnish-commit
mailing list