Skip to content
Snippets Groups Projects
Commit 5ffe54b9 authored by Georgy Moshkin's avatar Georgy Moshkin :speech_balloon: Committed by Georgy Moshkin
Browse files

fix(governor): weight changes only for maybe_responding instances

parent f02b50ec
No related branches found
No related tags found
1 merge request!434refactor(governor): extract mod plan
......@@ -446,7 +446,7 @@ fn get_target_weight_changes<'i>(
) -> Option<HashMap<&'i ReplicasetId, Weight>> {
let mut replicaset_sizes = HashMap::new();
let mut weight_changes = HashMap::new();
for Instance { replicaset_id, .. } in instances {
for Instance { replicaset_id, .. } in maybe_responding(instances) {
let replicaset_size = replicaset_sizes.entry(replicaset_id).or_insert(0);
*replicaset_size += 1;
let Some(Replicaset {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment