mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-20 11:32:19 +00:00
fix: include mrf heal source counts
Co-Authored-By: heihutu <heihutu@gmail.com>
This commit is contained in:
@@ -317,6 +317,7 @@ fn add_source_counts(total: &mut rustfs_heal::HealSourceCounts, next: rustfs_hea
|
|||||||
total.auto_heal = total.auto_heal.saturating_add(next.auto_heal);
|
total.auto_heal = total.auto_heal.saturating_add(next.auto_heal);
|
||||||
total.internal = total.internal.saturating_add(next.internal);
|
total.internal = total.internal.saturating_add(next.internal);
|
||||||
total.read_repair = total.read_repair.saturating_add(next.read_repair);
|
total.read_repair = total.read_repair.saturating_add(next.read_repair);
|
||||||
|
total.mrf = total.mrf.saturating_add(next.mrf);
|
||||||
}
|
}
|
||||||
|
|
||||||
fn add_operations(total: &mut rustfs_heal::HealOperationsSnapshot, next: rustfs_heal::HealOperationsSnapshot) {
|
fn add_operations(total: &mut rustfs_heal::HealOperationsSnapshot, next: rustfs_heal::HealOperationsSnapshot) {
|
||||||
@@ -2353,6 +2354,7 @@ mod tests {
|
|||||||
auto_heal: value,
|
auto_heal: value,
|
||||||
internal: value,
|
internal: value,
|
||||||
read_repair: value,
|
read_repair: value,
|
||||||
|
mrf: value,
|
||||||
};
|
};
|
||||||
let operations = |value| rustfs_heal::HealOperationsSnapshot {
|
let operations = |value| rustfs_heal::HealOperationsSnapshot {
|
||||||
queue_length: value,
|
queue_length: value,
|
||||||
|
|||||||
Reference in New Issue
Block a user