r3437 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Tue Nov 25 12:09:39 CET 2008


Author: phk
Date: 2008-11-25 12:09:38 +0100 (Tue, 25 Nov 2008)
New Revision: 3437

Modified:
   trunk/varnish-cache/bin/varnishd/heritage.h
   trunk/varnish-cache/bin/varnishd/mgt_param.c
Log:
Add a parameter to enable SHA256 hashing.

This does not do anything yet.



Modified: trunk/varnish-cache/bin/varnishd/heritage.h
===================================================================
--- trunk/varnish-cache/bin/varnishd/heritage.h	2008-11-25 11:07:39 UTC (rev 3436)
+++ trunk/varnish-cache/bin/varnishd/heritage.h	2008-11-25 11:09:38 UTC (rev 3437)
@@ -174,6 +174,9 @@
 	/* Default grace period */
 	unsigned		default_grace;
 
+	/* Use sha256 hasing */
+	unsigned		hash_sha256;
+
 	/* Log hash string to shm */
 	unsigned		log_hash;
 

Modified: trunk/varnish-cache/bin/varnishd/mgt_param.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/mgt_param.c	2008-11-25 11:07:39 UTC (rev 3436)
+++ trunk/varnish-cache/bin/varnishd/mgt_param.c	2008-11-25 11:09:38 UTC (rev 3437)
@@ -839,6 +839,10 @@
 		"NB: Must be specified with -p to have effect.\n",
 		0,
 		"8192", "bytes" },
+	{ "hash_sha256", tweak_bool, &master.hash_sha256, 0, 0,
+		"Use SHA256 compression of hash-strings",
+		0,
+		"off", "bool" },
 	{ "log_hashstring", tweak_bool, &master.log_hash, 0, 0,
 		"Log the hash string to shared memory log.\n",
 		0,



More information about the varnish-commit mailing list