Skip to content

Commit 19127ee

Browse files
rousskovsquid-anubis
authored andcommitted
Remove always-zero CacheDigestGuessStats::closeHits (#2062)
The data member stopped being updated in 1998 commit 69c95dd. It was scheduled for removal since inception in 1998 commit 04f0c41.
1 parent 12a72cf commit 19127ee

2 files changed

Lines changed: 0 additions & 3 deletions

File tree

src/CacheDigest.cc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,6 @@ cacheDigestGuessStatsReport(const CacheDigestGuessStats * stats, StoreEntry * se
237237
hit_count, xpercent(hit_count, tot_count),
238238
miss_count, xpercent(miss_count, tot_count),
239239
tot_count, xpercent(tot_count, tot_count));
240-
storeAppendPrintf(sentry, "\tclose_hits: %d ( %d%%) /* cd said hit, doc was in the peer cache, but we got a miss */\n",
241-
stats->closeHits, xpercentInt(stats->closeHits, stats->falseHits));
242240
}
243241

244242
void

src/StatCounters.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ class CacheDigestGuessStats
2222
int falseHits = 0;
2323
int trueMisses = 0;
2424
int falseMisses = 0;
25-
int closeHits = 0; // TODO: temporary. remove it later
2625
};
2726
#endif
2827

0 commit comments

Comments
 (0)