mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-06 15:17:01 +02:00
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:
parent
e28e647fef
commit
ba5738489f
@ -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++;
|
||||
|
Loading…
Reference in New Issue
Block a user