commit | 19a106d24a18868bcef66bd6486de0cef48419c7 | [log] [tgz] |
---|---|---|
author | Baptiste Assmann <bedis9@gmail.com> | Wed Jul 08 22:03:56 2015 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Tue Jul 21 23:24:16 2015 +0200 |
tree | b532a49845db845e07d95e5de4f87099653e8be3 | |
parent | 7cc419ae1d7557c16c228041bc5ddde87b052d6a [diff] |
MINOR: server: server_find functions: id, name, best_match This patch introduces three new functions which can be used to find a server in a farm using different server information: - server unique id (srv->puid) - server name - find best match using either name or unique id When performing best matching, the following applies: - use the server name first (if provided) - use the server id if provided in any case, the function can update the caller about mismatches encountered.