]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Remove always-zero CacheDigestGuessStats::closeHits (#2062)
authorAlex Rousskov <rousskov@measurement-factory.com>
Sun, 18 May 2025 07:58:53 +0000 (07:58 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Sun, 18 May 2025 07:58:56 +0000 (07:58 +0000)
The data member stopped being updated in 1998 commit 69c95dd3. It was
scheduled for removal since inception in 1998 commit 04f0c415.

src/CacheDigest.cc
src/StatCounters.h

index 89967b4cbbf59338ad7090ba2c99bd277253b563..1f1751eb1b1bf8dcf787070e8452f388277900f5 100644 (file)
@@ -237,8 +237,6 @@ cacheDigestGuessStatsReport(const CacheDigestGuessStats * stats, StoreEntry * se
                       hit_count, xpercent(hit_count, tot_count),
                       miss_count, xpercent(miss_count, tot_count),
                       tot_count, xpercent(tot_count, tot_count));
-    storeAppendPrintf(sentry, "\tclose_hits: %d ( %d%%) /* cd said hit, doc was in the peer cache, but we got a miss */\n",
-                      stats->closeHits, xpercentInt(stats->closeHits, stats->falseHits));
 }
 
 void
index e78d9d90eb2544997841d5763fd6d861d71d0fd3..4a4484eca7f5339ec5b59bc7ceafa35d7b08a1f1 100644 (file)
@@ -22,7 +22,6 @@ public:
     int falseHits = 0;
     int trueMisses = 0;
     int falseMisses = 0;
-    int closeHits = 0;     // TODO: temporary. remove it later
 };
 #endif