trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bc...@apache.org
Subject svn commit: r909639 - in /incubator/trafficserver/traffic/trunk/iocore/hostdb: HostDB.cc P_MultiCache.h
Date Fri, 12 Feb 2010 22:28:25 GMT
Author: bcall
Date: Fri Feb 12 22:28:24 2010
New Revision: 909639

URL: http://svn.apache.org/viewvc?rev=909639&view=rev
Log:
TS-170 Made it so hostdb can't core from not having a valid pointer in
reply_to_cont().  Also, lowered the high watermark from 90% to 80%.
Review: John

Modified:
    incubator/trafficserver/traffic/trunk/iocore/hostdb/HostDB.cc
    incubator/trafficserver/traffic/trunk/iocore/hostdb/P_MultiCache.h

Modified: incubator/trafficserver/traffic/trunk/iocore/hostdb/HostDB.cc
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/iocore/hostdb/HostDB.cc?rev=909639&r1=909638&r2=909639&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/iocore/hostdb/HostDB.cc (original)
+++ incubator/trafficserver/traffic/trunk/iocore/hostdb/HostDB.cc Fri Feb 12 22:28:24 2010
@@ -513,6 +513,11 @@
   char *reason = "none";
   HostDBInfo *r = ar;
 
+  if (r == NULL) {
+    cont->handleEvent(EVENT_HOST_DB_LOOKUP, NULL);
+    return false;
+  }
+
   if (r->failed()) {
     if (r->is_srv && r->srv_count) {
       cont->handleEvent(EVENT_SRV_LOOKUP, NULL);

Modified: incubator/trafficserver/traffic/trunk/iocore/hostdb/P_MultiCache.h
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/iocore/hostdb/P_MultiCache.h?rev=909639&r1=909638&r2=909639&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/iocore/hostdb/P_MultiCache.h (original)
+++ incubator/trafficserver/traffic/trunk/iocore/hostdb/P_MultiCache.h Fri Feb 12 22:28:24
2010
@@ -59,7 +59,7 @@
 #define MULTI_CACHE_MAJOR_VERSION    1
 #define MULTI_CACHE_MINOR_VERSION    0
 
-#define MULTI_CACHE_HEAP_HIGH_WATER  0.9
+#define MULTI_CACHE_HEAP_HIGH_WATER  0.8
 
 #define MULTI_CACHE_HEAP_INITIAL     sizeof(inku32)
 #define MULTI_CACHE_HEAP_ALIGNMENT   8



Mime
View raw message