trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zw...@apache.org
Subject svn commit: r1181097 - /trafficserver/traffic/trunk/proxy/StatPages.cc
Date Mon, 10 Oct 2011 17:50:46 GMT
Author: zwoop
Date: Mon Oct 10 17:50:46 2011
New Revision: 1181097

URL: http://svn.apache.org/viewvc?rev=1181097&view=rev
Log:
TS-979 Small optimization when stat pages are disabled

Modified:
    trafficserver/traffic/trunk/proxy/StatPages.cc

Modified: trafficserver/traffic/trunk/proxy/StatPages.cc
URL: http://svn.apache.org/viewvc/trafficserver/traffic/trunk/proxy/StatPages.cc?rev=1181097&r1=1181096&r2=1181097&view=diff
==============================================================================
--- trafficserver/traffic/trunk/proxy/StatPages.cc (original)
+++ trafficserver/traffic/trunk/proxy/StatPages.cc Mon Oct 10 17:50:46 2011
@@ -98,6 +98,10 @@ StatPagesManager::handle_http(Continuati
 bool
 StatPagesManager::is_stat_page(URL * url)
 {
+  // This gets called from the state machine, so we should optimize here and not in caller.
+  if (m_enabled <= 0)
+    return false;
+
   int length;
   const char *h = url->host_get(&length);
   char host[MAXDNAME + 1];



Mime
View raw message