r4170 - branches/2.0/varnish-cache/bin/varnishd

sky at projects.linpro.no sky at projects.linpro.no
Fri Jul 31 17:27:34 CEST 2009


Author: sky
Date: 2009-07-31 17:27:34 +0200 (Fri, 31 Jul 2009)
New Revision: 4170

Modified:
   branches/2.0/varnish-cache/bin/varnishd/storage_file.c
Log:
merge r4032

Modified: branches/2.0/varnish-cache/bin/varnishd/storage_file.c
===================================================================
--- branches/2.0/varnish-cache/bin/varnishd/storage_file.c	2009-07-31 09:41:20 UTC (rev 4169)
+++ branches/2.0/varnish-cache/bin/varnishd/storage_file.c	2009-07-31 15:27:34 UTC (rev 4170)
@@ -577,6 +577,7 @@
 		p = mmap(NULL, sz, PROT_READ|PROT_WRITE,
 		    MAP_NOCORE | MAP_NOSYNC | MAP_SHARED, sc->fd, off);
 		if (p != MAP_FAILED) {
+			(void) madvise(p, sz, MADV_RANDOM);
 			(*sum) += sz;
 			new_smf(sc, p, off, sz);
 			return;



More information about the varnish-commit mailing list