r588 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Tue Aug 1 17:08:55 CEST 2006


Author: phk
Date: 2006-08-01 17:08:54 +0200 (Tue, 01 Aug 2006)
New Revision: 588

Modified:
   trunk/varnish-cache/bin/varnishd/storage_file.c
Log:
Make 32bit limitation work better.


Modified: trunk/varnish-cache/bin/varnishd/storage_file.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/storage_file.c	2006-08-01 15:08:36 UTC (rev 587)
+++ trunk/varnish-cache/bin/varnishd/storage_file.c	2006-08-01 15:08:54 UTC (rev 588)
@@ -161,7 +161,7 @@
 		exit (2);
 	}
 
-	if (expl < 0 && sizeof(void *) == 4 && l > (1ULL << 31)) {
+	if (expl < 3 && sizeof(void *) == 4 && l > (1ULL << 31)) {
 		fprintf(stderr,
 		    "NB: Limiting size to 2GB on 32 bit architecture to"
 		    " prevent running out of\naddress space."




More information about the varnish-commit mailing list