MXS-2011 Use alternative servers

If the replication fails using the current config, we retry
immediately using another config, without waiting anything at
all.

Only when we have unsuccessfully tried with all servers, will
we wait a while before starting again.
This commit is contained in:
Johan Wikman
2018-09-03 11:03:48 +03:00
parent ae28f8189b
commit 812d80e403
3 changed files with 29 additions and 1 deletions

View File

@ -821,7 +821,8 @@ struct ROUTER_INSTANCE: public MXS_ROUTER
enum binlog_storage_type storage_type;/*< Enables hierachical binlog file storage */
char *set_slave_hostname; /*< Send custom Hostname to Master */
ROUTER_INSTANCE *next;
std::vector<ChangeMasterConfig> configs; /*< Current config. */
std::vector<ChangeMasterConfig> configs;/*< Available configs. */
int current_config; /*< The config currently being used. */
};
/** Master Semi-Sync capability */