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

@ -817,6 +817,7 @@ static MXS_ROUTER* createInstance(SERVICE *service, MXS_CONFIG_PARAMETER* params
* automatic master replication start phase
*/
inst->current_config = 0;
rc = blr_file_read_master_config(inst);
/*