INN commit: branches/2.5/storage/tradindexed (tdx-cache.c)

INN Commit rra at isc.org
Sun Mar 14 20:59:54 UTC 2010


    Date: Sunday, March 14, 2010 @ 13:59:54
  Author: iulius
Revision: 8999

Fix a bug in tradindexed cache entries which made innd throttle
because the oldest cache entry couldn't be found.  It thought
the cache was empty, kept opening copies of the same overview
files, and eventually ran out of available system open file
descriptors.

Modified:
  branches/2.5/storage/tradindexed/tdx-cache.c

-------------+
 tdx-cache.c |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

Modified: tdx-cache.c
===================================================================
--- tdx-cache.c	2010-03-14 20:59:42 UTC (rev 8998)
+++ tdx-cache.c	2010-03-14 20:59:54 UTC (rev 8999)
@@ -197,9 +197,12 @@
 void
 tdx_cache_delete(struct cache *cache, HASH hash)
 {
-    if (!hash_delete(cache->hashtable, &hash))
+    if (!hash_delete(cache->hashtable, &hash)) {
         warn("tradindexed: unable to remove cache entry for %s",
              HashToText(hash));
+    } else {
+        cache->count--;
+    }
 }
 
 




More information about the inn-committers mailing list