mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-07 13:53:12 +00:00
feat(heal): expose scanner heal admission outcomes (#3292)
Co-authored-by: Henry Guo <marshawcoco@users.noreply.github.com> Co-authored-by: cxymds <Cxymds@qq.com>
This commit is contained in:
@@ -1334,9 +1334,6 @@ impl Metrics {
|
||||
Metric::HealCheck => {
|
||||
self.record_scanner_source_checked(ScannerWorkSource::Heal, count);
|
||||
}
|
||||
Metric::HealAbandonedObject => {
|
||||
self.record_scanner_source_executed(ScannerWorkSource::Heal, count);
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
}
|
||||
@@ -2167,7 +2164,7 @@ mod tests {
|
||||
.find(|work| work.source == ScannerWorkSource::Heal.as_str())
|
||||
.expect("heal source work should be visible");
|
||||
assert_eq!(heal.checked, 5);
|
||||
assert_eq!(heal.executed, 6);
|
||||
assert_eq!(heal.executed, 0);
|
||||
}
|
||||
|
||||
#[tokio::test]
|
||||
|
||||
Reference in New Issue
Block a user