mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-01-31 18:41:39 +00:00
MINOR: backends: Change get_server_sh/get_server_uh into private function
This commit is contained in:
parent
87566c923b
commit
f0614e8111
@ -42,8 +42,6 @@ int tcp_persist_rdp_cookie(struct stream *s, struct channel *req, int an_bit);
|
||||
int be_downtime(struct proxy *px);
|
||||
void recount_servers(struct proxy *px);
|
||||
void update_backend_weight(struct proxy *px);
|
||||
struct server *get_server_sh(struct proxy *px, const char *addr, int len);
|
||||
struct server *get_server_uh(struct proxy *px, char *uri, int uri_len);
|
||||
int be_lastsession(const struct proxy *be);
|
||||
|
||||
/* Returns number of usable servers in backend */
|
||||
|
@ -152,7 +152,7 @@ void update_backend_weight(struct proxy *px)
|
||||
* If any server is found, it will be returned. If no valid server is found,
|
||||
* NULL is returned.
|
||||
*/
|
||||
struct server *get_server_sh(struct proxy *px, const char *addr, int len)
|
||||
static struct server *get_server_sh(struct proxy *px, const char *addr, int len)
|
||||
{
|
||||
unsigned int h, l;
|
||||
|
||||
@ -190,7 +190,7 @@ struct server *get_server_sh(struct proxy *px, const char *addr, int len)
|
||||
* algorithm out of a tens because it gave him the best results.
|
||||
*
|
||||
*/
|
||||
struct server *get_server_uh(struct proxy *px, char *uri, int uri_len)
|
||||
static struct server *get_server_uh(struct proxy *px, char *uri, int uri_len)
|
||||
{
|
||||
unsigned int hash = 0;
|
||||
int c;
|
||||
|
Loading…
Reference in New Issue
Block a user