r4577 - trunk/varnish-cache/bin/varnishd
phk at projects.linpro.no
phk at projects.linpro.no
Thu Feb 18 11:47:17 CET 2010
Author: phk
Date: 2010-02-18 11:47:16 +0100 (Thu, 18 Feb 2010)
New Revision: 4577
Modified:
trunk/varnish-cache/bin/varnishd/storage_persistent.c
Log:
Align new segments properly.
Modified: trunk/varnish-cache/bin/varnishd/storage_persistent.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/storage_persistent.c 2010-02-17 19:07:21 UTC (rev 4576)
+++ trunk/varnish-cache/bin/varnishd/storage_persistent.c 2010-02-18 10:47:16 UTC (rev 4577)
@@ -1157,6 +1157,8 @@
assert(C_ALIGN(sc->objreserv) + 2 * SEG_SPACE <= smp_spaceleft(sg));
/* Write the OBJIDX */
+ sg->next_addr |= 7;
+ sg->next_addr++;
smp_def_sign(sc, sg->ctx, sg->next_addr, "OBJIDX");
smp_reset_sign(sg->ctx);
smp_sync_sign(sg->ctx);
More information about the varnish-commit
mailing list