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

tfheen at projects.linpro.no tfheen at projects.linpro.no
Fri Feb 6 10:51:51 CET 2009


Author: tfheen
Date: 2009-02-06 10:51:51 +0100 (Fri, 06 Feb 2009)
New Revision: 3638

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

This does not do anything yet.



Modified: branches/2.0/varnish-cache/bin/varnishd/heritage.h
===================================================================
--- branches/2.0/varnish-cache/bin/varnishd/heritage.h	2009-02-06 09:48:40 UTC (rev 3637)
+++ branches/2.0/varnish-cache/bin/varnishd/heritage.h	2009-02-06 09:51:51 UTC (rev 3638)
@@ -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: branches/2.0/varnish-cache/bin/varnishd/mgt_param.c
===================================================================
--- branches/2.0/varnish-cache/bin/varnishd/mgt_param.c	2009-02-06 09:48:40 UTC (rev 3637)
+++ branches/2.0/varnish-cache/bin/varnishd/mgt_param.c	2009-02-06 09:51:51 UTC (rev 3638)
@@ -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