r3934 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Mon Mar 16 10:49:11 CET 2009


Author: phk
Date: 2009-03-16 10:49:11 +0100 (Mon, 16 Mar 2009)
New Revision: 3934

Modified:
   trunk/varnish-cache/bin/varnishd/storage_persistent.c
Log:
Don't bail om msync(2) for now, it's probably alignment issues.



Modified: trunk/varnish-cache/bin/varnishd/storage_persistent.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/storage_persistent.c	2009-03-16 09:48:48 UTC (rev 3933)
+++ trunk/varnish-cache/bin/varnishd/storage_persistent.c	2009-03-16 09:49:11 UTC (rev 3934)
@@ -177,12 +177,13 @@
 static void
 smp_sync_sign(const struct smp_sc *sc, uint64_t adr, uint64_t len)
 {
+	int i;
 
 	AZ(adr & 0x7);			/* Enforce alignment */
 
-	AZ(msync(sc->ptr + adr,
-	    sizeof(struct smp_sign) + len + SHA256_LEN, MS_SYNC));
-fprintf(stderr, "SyncSign(%jx, %jx)\n", adr, len);
+	i = msync(sc->ptr + adr,
+	    sizeof(struct smp_sign) + len + SHA256_LEN, MS_SYNC);
+fprintf(stderr, "SyncSign(%jx, %jx) = %d %s\n", adr, len, i, strerror(errno));
 }
 
 /*--------------------------------------------------------------------



More information about the varnish-commit mailing list