You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by jp...@apache.org on 2015/04/05 06:47:29 UTC

trafficserver git commit: Document the url_hash_method setting.

Repository: trafficserver
Updated Branches:
  refs/heads/master 877d21b7f -> d48289055


Document the url_hash_method setting.


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/d4828905
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/d4828905
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/d4828905

Branch: refs/heads/master
Commit: d482890552c094ee320e3221e7199bae124fc75f
Parents: 877d21b
Author: James Peach <jp...@apache.org>
Authored: Sat Apr 4 17:03:02 2015 -0700
Committer: James Peach <jp...@apache.org>
Committed: Sat Apr 4 17:03:18 2015 -0700

----------------------------------------------------------------------
 lib/perl/lib/Apache/TS/AdminClient.pm | 1 -
 proxy/hdrs/URL.cc                     | 5 +++--
 proxy/hdrs/test_urlhash.cc            | 2 --
 3 files changed, 3 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/d4828905/lib/perl/lib/Apache/TS/AdminClient.pm
----------------------------------------------------------------------
diff --git a/lib/perl/lib/Apache/TS/AdminClient.pm b/lib/perl/lib/Apache/TS/AdminClient.pm
index 05c2981..577c337 100644
--- a/lib/perl/lib/Apache/TS/AdminClient.pm
+++ b/lib/perl/lib/Apache/TS/AdminClient.pm
@@ -348,7 +348,6 @@ The Apache Traffic Server Administration Manual will explain what these strings
  proxy.config.cache.select_alternate
  proxy.config.cache.storage_filename
  proxy.config.cache.threads_per_disk
- proxy.config.cache.url_hash_method
  proxy.config.cache.mutex_retry_delay
  proxy.config.cluster.cluster_configuration
  proxy.config.cluster.cluster_load_clear_duration

http://git-wip-us.apache.org/repos/asf/trafficserver/blob/d4828905/proxy/hdrs/URL.cc
----------------------------------------------------------------------
diff --git a/proxy/hdrs/URL.cc b/proxy/hdrs/URL.cc
index fa975f2..a0529c8 100644
--- a/proxy/hdrs/URL.cc
+++ b/proxy/hdrs/URL.cc
@@ -92,8 +92,9 @@ int URL_LEN_MMS;
 int URL_LEN_MMSU;
 int URL_LEN_MMST;
 
-int url_hash_method = 0;
-
+// Whether we should implement url_MD5_get() using url_MD5_get_fast(). Note that
+// url_MD5_get_fast() does NOT produce the same result as url_MD5_get_general().
+static int url_hash_method = 0;
 
 /*-------------------------------------------------------------------------
   -------------------------------------------------------------------------*/

http://git-wip-us.apache.org/repos/asf/trafficserver/blob/d4828905/proxy/hdrs/test_urlhash.cc
----------------------------------------------------------------------
diff --git a/proxy/hdrs/test_urlhash.cc b/proxy/hdrs/test_urlhash.cc
index ad4ba6c..812d7d0 100644
--- a/proxy/hdrs/test_urlhash.cc
+++ b/proxy/hdrs/test_urlhash.cc
@@ -35,8 +35,6 @@
 static void
 test_url()
 {
-  url_hash_method = 1;
-
   static const char *strs[] = {"http://npdev:19080/1.6664000000/4000", "http://npdev:19080/1.8666000000/4000"};
   static int nstrs = sizeof(strs) / sizeof(strs[0]);