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

INN Commit rra at isc.org
Sun Mar 14 20:41:19 UTC 2010


    Date: Sunday, March 14, 2010 @ 13:41:19
  Author: iulius
Revision: 8993

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:
  trunk/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:34:39 UTC (rev 8992)
+++ tdx-cache.c	2010-03-14 20:41:19 UTC (rev 8993)
@@ -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