MXS-922: Move server weight calculation into the core

The core now does the server weight calculation instead of each router
module doing the same thing.
This commit is contained in:
Markus Makela
2016-11-03 11:24:32 +02:00
parent bf62f8950a
commit a097204c70
4 changed files with 106 additions and 152 deletions

View File

@ -97,8 +97,9 @@ typedef struct
typedef struct server_ref_t
{
struct server_ref_t *next;
SERVER* server;
struct server_ref_t *next; /**< Next server reference */
SERVER* server; /**< The actual server */
int weight; /**< Weight of this server */
} SERVER_REF;
#define SERVICE_MAX_RETRY_INTERVAL 3600 /*< The maximum interval between service start retries */