mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-07 07:37:02 +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;
|
break;
|
||||||
}
|
}
|
||||||
avoided = s;
|
avoided = s;
|
||||||
unusable++;
|
|
||||||
}
|
}
|
||||||
else
|
unusable++;
|
||||||
unusable++;
|
|
||||||
i++;
|
i++;
|
||||||
} else if (mt_list.next == &tree_elt->srv_list[(i + orig_nb) % FWLC_LISTS_NB]) {
|
} else if (mt_list.next == &tree_elt->srv_list[(i + orig_nb) % FWLC_LISTS_NB]) {
|
||||||
i++;
|
i++;
|
||||||
|
Loading…
Reference in New Issue
Block a user