r4960 - trunk/varnish-cache/bin/varnishd
phk at varnish-cache.org
phk at varnish-cache.org
Wed Jun 16 12:39:10 CEST 2010
Author: phk
Date: 2010-06-16 12:39:09 +0200 (Wed, 16 Jun 2010)
New Revision: 4960
Modified:
trunk/varnish-cache/bin/varnishd/vsm.c
Log:
Preincrement seq#, otherwise it makes no difference.
Modified: trunk/varnish-cache/bin/varnishd/vsm.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/vsm.c 2010-06-16 10:19:34 UTC (rev 4959)
+++ trunk/varnish-cache/bin/varnishd/vsm.c 2010-06-16 10:39:09 UTC (rev 4960)
@@ -116,7 +116,7 @@
VWMB();
if (seq != 0)
do
- loghead->alloc_seq = seq++;
+ loghead->alloc_seq = ++seq;
while (loghead->alloc_seq == 0);
return (VSM_PTR(sha));
More information about the varnish-commit
mailing list