mirror of
				https://github.com/Zygo/bees.git
				synced 2025-11-04 04:00:36 +01:00 
			
		
		
		
	stats: remove nonsense dedup_unique_bytes stat
A long time ago, when bees used dedicated threads to scan each subvol, the calculation of the "dedup_unique_bytes" statistic was still wrong. This stat can only be calculated when dedupe runs on extent data items instead of extent reference items. Remove the stat variable until that happens. Signed-off-by: Zygo Blaxell <bees@furryterror.org>
This commit is contained in:
		@@ -258,11 +258,6 @@ BeesContext::dedup(const BeesRangePair &brp)
 | 
			
		||||
	if (rv) {
 | 
			
		||||
		BEESCOUNT(dedup_hit);
 | 
			
		||||
		BEESCOUNTADD(dedup_bytes, brp.first.size());
 | 
			
		||||
		thread_local BeesFileRange last_src_bfr;
 | 
			
		||||
		if (!last_src_bfr.overlaps(brp.first)) {
 | 
			
		||||
			BEESCOUNTADD(dedup_unique_bytes, brp.first.size());
 | 
			
		||||
			last_src_bfr = brp.first;
 | 
			
		||||
		}
 | 
			
		||||
	} else {
 | 
			
		||||
		BEESCOUNT(dedup_miss);
 | 
			
		||||
		BEESLOGWARN("NO Dedup! " << brp);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user