MINOR: fwlc: Factorize code.

Always set unusable if we could not use a server, instead of doing it in
each branch

This should be backported to 3.2 after e28e647fef
is backported.
This commit is contained in:
Olivier Houchard 2025-06-20 15:53:27 +02:00 committed by Olivier Houchard
parent e28e647fef
commit ba5738489f

View File

@ -806,10 +806,8 @@ struct server *fwlc_get_next_server(struct proxy *p, struct server *srvtoavoid)
break;
}
avoided = s;
unusable++;
}
else
unusable++;
unusable++;
i++;
} else if (mt_list.next == &tree_elt->srv_list[(i + orig_nb) % FWLC_LISTS_NB]) {
i++;