docs(scanner): clarify unknown tier stats

This commit is contained in:
马登山
2026-08-22 23:42:58 +08:00
parent 0b0c7ca4d7
commit 2ab23980f9
2 changed files with 4 additions and 3 deletions
+2 -2
View File
@@ -220,8 +220,8 @@ impl ScannerSizeSummaryExt for SizeSummary {
}
let builtin_tier = tier == storageclass::STANDARD || tier == storageclass::RRS;
let tier_registry_is_empty = self.tier_stats.is_empty()
|| (self.tier_stats.len() == 1 && self.tier_stats.contains_key(UNKNOWN_TIER));
let tier_registry_is_empty =
self.tier_stats.is_empty() || (self.tier_stats.len() == 1 && self.tier_stats.contains_key(UNKNOWN_TIER));
let known_tier = tier != UNKNOWN_TIER && (builtin_tier || self.tier_stats.contains_key(&tier));
// With no configured tier, retain the historical empty-map shape for